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 !