Skip to Content
0
Jul 30, 2019 at 06:27 PM

Setting table visiblity to false and then true causes some data in table to go missing.

53 Views

Hi, I currently have a segmented control button which allows me to display the table or hide the table. The table is a bit complex in that I dynamically populate it with text, images, and click events. I first load the table and then addEventDelegate onAfterRendering for after the table renders to attach images and click events.

I notice that when I set the table's visibility to false and then true again, I see that the images and click events are missing from the table while the text remains.

Is there a reason why this happens? Is it because I attach images and click events to the table after the table is already rendered? How do I make sure that all the table's content remains without having to redraw the table?