-
14 Nov 2012 12:38 PM #1
Reselect row after Grid filter update
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
at the end of the function but it does not work unless the filter is deactivated by hand (uncheck the filter checkbox)Code:for(i=0; i < gridIndex.length; i++){ grid.getSelectionModel().select(gridIndex[i],true, true); }
So what is the proper way to do it without editing source files?
Thanks !
-
19 Nov 2012 9:44 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
What is the gridIndex array?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote