Sencha Touch 1.x Forums - Unsupported /
Sencha Touch 1.x: Bugs /
How to refresh a template in a panel ?
I have a template embedded in a Panel. The data for the template are received by ajax.
If I change data how refresh the template ? I don't find any render() or refresh() methode for a panel.
Has any one an idea ?
Edit: So sorry, wrong forum. I was reading both
I dont necessarily do the following with html templates in Panels, but I do do this with DataViews inside of Panels. It's a quick (thought-of) way to refresh something like that.
When the data changes, check to see if the component exists.
If the component exists, destroy the component, then recreate the component and add it back into the parent component.
Then call a doLayout() on the parent component.
In fact I found the method. It's update([data]) !
Thanks,it really work for me!!
Originally Posted by