Results 1 to 4 of 4

Thread: State Management Help

  1. #1

    Default State Management Help

    Hey Guys,

    Could anyone please elaborate what exactly this line does and when to use this ??

    Code:
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    Would seriously appreciate the help,

    Regards,

    Hw

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    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.

  3. #3

    Default Is it necessary to specify this line always, which is the default state provider?

    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
    Code:
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    Which is the default state provider?

    Thanks again,

    Hw

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    The default Ext.state.Provider uses an object hash to store the states (so the state isn't remembered across pages).

Similar Threads

  1. State Management process is confusing. Need some help to understand it.
    By CrazyEnigma in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 30 Dec 2009, 9:08 AM
  2. Replies: 2
    Last Post: 6 Aug 2009, 3:14 PM
  3. Grouping View State Management
    By soze in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Nov 2008, 4:49 AM
  4. state management
    By archmisha in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 15 Oct 2008, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •