I have a large list where I've implemented filtering. I'd like to user to be able to select some rows, filter the list, select a few more, change the filter, select more, and have all of the selections remain.
I am following this example: http://mleibman.github.com/SlickGrid/examples/example4-model.html
Follow these steps to see my problem:
- Click on the 0 row
- Shift-click on the 10 row. Rows 0 through 10 are selected now.
- Move the slider up to about 90%, so only a few of the rows 0 - 10 show. (For me, 2, 6, and 8 still show and are still selected.)
- Ctrl-click on an un-selected row (for me, row 29)
- Slide the filter back down to zero.
Now this issue is seen. For me, only rows 2, 6, 8, and 29 are selected. I would prefer that 0 through 10 and 29 remain selected. Is there an option to get this behavior? If not, can someone recommend an approach that might work?
This problem has been solved on Github.
The trick is to:
Here is code that does it.
Note that this code DOES NOT preserve selected rows which do not pass the filter.