Results 1 to 3 of 3

Thread: State manager does not restore grid sort column state

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Sep 2007
    Posts
    150
    Vote Rating
    7
      0  

    Default State manager does not restore grid sort column state

    If you use a state manager and setup a grid to be stateful, it will not be able to restore the column sort state if you bind to a viewmodel store.

    Here's a Fiddle replicating the issue ins ExtJS 6.0.2: https://fiddle.sencha.com/#view/editor&fiddle/29id

    I tried in 6.2 and 6.5 as well and the problem still exists.

  2. #2
    Sencha User
    Join Date
    Jul 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default

    I am currently seeing the same issue. Column width/position is saved, sort is not.

    Further it appears the array passed from the state.Manager to the stateProvider does NOT include state information.

    I've tried explicitly setting the stateEvents, it made no difference.

    Code:
    stateEvents: ['columnresize', 'columnmove','show','hide','sortchange'],
    Last edited by terrence.r.bayne@saic.com; 10 Jan 2018 at 1:15 PM. Reason: More Information

  3. #3
    Sencha Premium User
    Join Date
    Mar 2010
    Location
    Atlanta, GA
    Posts
    52
    Vote Rating
    3
      0  

    Default

    The problem is that the state is initially applied to an empty store.
    When the real store is bound, the grid is re-configured and the sorters/groupers are not copied to the new store.

    Here is a workaround.



Similar Threads

  1. Grid custom sort and state manager
    By Misiu in forum Ext: Discussion
    Replies: 5
    Last Post: 8 Sep 2014, 1:20 PM
  2. Replies: 3
    Last Post: 19 May 2010, 11:02 AM
  3. Replies: 3
    Last Post: 4 Jun 2008, 4:25 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
  •