View Full Version : Reset State aware cookie and refresh object on the screen

18 Oct 2010, 11:34 PM
My application is using this in the beginning of the code.
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

In which, this enable my application to persists user preferences for all state aware objects. Such as default Ext.grid in the framework.

Now I would like to implement a button to reset the cookie for some of the objects.

I am doing this within the target object scope.


This works fine, on reload of the entire application.

However, the user don't want to refresh the application and would like to see immediate refresh from the UI. So forexample a 'grid'. I will need to "destroy" the grid and "new" an instance to reflect the changes.

I have notice that there is a render and doLayout function in the framework. Can they accommodate my needs? or I really need to destroy the grid and create a new instance everytime.