Results 1 to 2 of 2

Thread: Reselect row after Grid filter update

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Reselect row after Grid filter update

    Hello,

    I use filter feature for the grid, I want it to restore previous selections after the filter is updated.

    I save the row indexes in an array called rowIndex[]

    I tried to put the following code in the onStateChange in ux.grid.FiltersFeature.js
    Code:
                for(i=0; i < gridIndex.length; i++){
                    grid.getSelectionModel().select(gridIndex[i],true, true);
                }
    at the end of the function but it does not work unless the filter is deactivated by hand (uncheck the filter checkbox)

    So what is the proper way to do it without editing source files?

    Thanks !

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    What is the gridIndex array?
    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

Posting Permissions

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