In my sencha touch 2.3 app, I have a page that has few toggle fields, text fields etc. I want to set values on these fields every time the page is shown (it might have different set of values every time).
The parent container of this page is a panel that has card layout. I show the different pages using setActiveItem('pagextype');
Now, if I set values during initialize, it will get set once, but the next time the page is shown, initialize will not be called. And the elements will not be set to the new values.
Instead of initialize, I used painted event. This works fine. But whenever I go to the page, for a moment it displays the old values and then updates itself to the new values.
What is the best way to handle this scenario?
You can follow below steps.