Results 1 to 3 of 3

Thread: stateful grid state restore without reloading web page

  1. #1
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    518
    Answers
    4

    Default stateful grid state restore without reloading web page

    Hi,

    Using: Ext 4.2.1

    I have a grid with stateful: true, stateId: "mygrid"
    It works. I can reload the web page and the column positions are kept on their custom position as expected.

    But I'm using the single page application approach, so the page should never reloaded (no need).

    The problem is that if I destroy that grid and I render it again, the columns go back to their default position.

    So only refreshing the page makes it work.

    Any idea ?

    I'm using this provider on application launch:
    Ext.state.Manager.setProvider(new Ext.state.LocalStorageProvider());

    Thanks.

  2. #2
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    518
    Answers
    4

    Default

    Found the solution.

    I needed to define stateId on each column as well.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Glad to hear you figured it out, and thanks for taking the time to post the solution for the community.

Posting Permissions

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