-
Sencha User
Answered: Refreshing a view every time its rendered on screen
How can we refresh a view each time it is rendered on screen.
for example if a view is rendered on screen when button is clicked it should be loaded again on click action of button each time button is pressed,
-
Best Answer Posted by
JohnM_
If you're showing a store with autoLoad = true, it should redisplay the onscreen portion when the data is refreshed. If you need to re-render the UI elements on the view, use a combination of removing them from the view and various set() methods to modify their appearance. It's probably better to pop or remove the entire view, and then re-create and push it once the appropriate data structure is rebuilt in memory.
This is just general advice - I don't think you'll get much more without giving a better idea of what you're trying to do.
-
Sencha User
If you're showing a store with autoLoad = true, it should redisplay the onscreen portion when the data is refreshed. If you need to re-render the UI elements on the view, use a combination of removing them from the view and various set() methods to modify their appearance. It's probably better to pop or remove the entire view, and then re-create and push it once the appropriate data structure is rebuilt in memory.
This is just general advice - I don't think you'll get much more without giving a better idea of what you're trying to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules