Results 1 to 2 of 2

Thread: Reselect row after Grid filter update

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default Reselect row after Grid filter update


    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
                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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    What is the gridIndex array?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

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