Results 1 to 3 of 3

Thread: Problem with cookieProvider and statefull

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    -2
      -1  

    Default Problem with cookieProvider and statefull

    Hello.
    Sorry for my bad english.
    Now I understand Ext.state.Stateful. I use cookieProvider.
    Conceptually, I can not understand one thing.
    Everything seems to work, cookies are created, events occur.
    But why at the start of the application (f5 in the browser) does the statesave event fire and erase all states?
    What about? It turns out that the state can be stored only while the application is running. Those. F5 clicked, and all the states flew off? I am using 6.2 gplv3


    See the demonstration here https://fiddle.sencha.com/#view/editor&fiddle/2p30
    If you click Run, then hide one of the columns, then click Run again.
    As a result, this column will again be visible.

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    -2
      -1  

    Default

    fixed
    Ext.state.Manager.setProvider should be in the init method, not in the launch method

    init: function(application) {
    Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));

    }

  3. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,382
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    You should also post in the correct forum as this is the for the Sencha Fiddle tool itself not for Ext JS.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. EXT JS 3.0 statefull grid - cannot load preferences from cookies
    By diyasher in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Oct 2013, 11:41 AM
  2. Creating a statefull tree panel
    By kesteb in forum Ext: Discussion
    Replies: 3
    Last Post: 18 Nov 2012, 9:47 AM
  3. Y2K problem in cookieProvider
    By jekirby in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 29 Sep 2011, 10:57 AM
  4. Statefull treepanel
    By catalin.ciobanu in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 9 Aug 2011, 2:00 AM
  5. CookieProvider problem
    By mcadirci in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 4 Feb 2011, 5:11 AM

Posting Permissions

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