Quick Question on TableView!

Dear Staffs & Community,

I would like to ask a quick question on tableview:

Can i stop the cleaning and re-rendering of rows when i scroll the tableview?

(Currently the table view will mark the rows as useless and remove them when not in screen, thereafter re-rendering them when the row is back in screen)

Regards,

Vincent

Hi Vincent,

The cleaning and re-rendering is for performance reasons. What is your specific need for not wanting this behavior?

Best regards,

Brent

Hi Brent,

On some of my rows, i have UI elements like textfield. In situations that user already entered text into those textfields, whenever they scroll the tableView . Those information will be lost as the textfield will be re-rendered as a new one. 

Thanks for the reply!

Regards,

Vince

Is there anyway to disable this?

Two solutions: You could edit the tableView Github code yourself (though it’s generally out-of-date) or just use scrollview.

If you use a text entry widget you should not rely on it to preserve display content. The typical method of control is to render the text yourself as a display object when the keyboard is no longer on screen. This is easier to setup than it sounds.

Understood! Thanks for the suggestion @horacebury & @corona273!

Regards,

Vincent

Hi Vincent,

The cleaning and re-rendering is for performance reasons. What is your specific need for not wanting this behavior?

Best regards,

Brent

Hi Brent,

On some of my rows, i have UI elements like textfield. In situations that user already entered text into those textfields, whenever they scroll the tableView . Those information will be lost as the textfield will be re-rendered as a new one. 

Thanks for the reply!

Regards,

Vince

Is there anyway to disable this?

Two solutions: You could edit the tableView Github code yourself (though it’s generally out-of-date) or just use scrollview.

If you use a text entry widget you should not rely on it to preserve display content. The typical method of control is to render the text yourself as a display object when the keyboard is no longer on screen. This is easier to setup than it sounds.

Understood! Thanks for the suggestion @horacebury & @corona273!

Regards,

Vincent