Hey Guys,
Could anyone please elaborate what exactly this line does and when to use this ??
Would seriously appreciate the help,Code:Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Regards,
Hw
Hey Guys,
Could anyone please elaborate what exactly this line does and when to use this ??
Would seriously appreciate the help,Code:Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Regards,
Hw
Some Ext components have build-in state management (Ext.Window, Ext.layout.BorderLayout.Region, Ext.grid.GridPanel). These components can load/save their current state (size, position etc.) from/to the state manager.
The state manager uses a provider to retrieve/store the state. One possible provider is a CookieProvider which stores the state in a cookie. There are other providers available that e.g. store the state on the server.
Thanks a lot condor for helping me on this one.
Another doubt that i had was whether the state of the components such as Grid etc. would still be saved/loaded when we dont specify this line
Which is the default state provider?Code:Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Thanks again,
Hw
The default Ext.state.Provider uses an object hash to store the states (so the state isn't remembered across pages).