View Full Version : [CLOSED] buffered scrolling + selected rows + filtering

Nov 07, 2014, 4:48 PM

I am using the following example:


With the following modifications :
1- Replacing line : SelectionModel(Html.X().RowSelectionModel().PruneR emoved(false))
With : SelectionModel(Html.X().CheckboxSelectionModel().M ode(SelectionMode.Multi).CheckOnly(true).PruneRemo ved(false))

2- Adding : Features(Html.X().GridFilters().Filters(f => f.Add(Html.X().StringFilter().DataIndex("name"))))

3- Adding: SelectionMemory(true) to the gird

4- Adding PageSize(50).LeadingBufferZone(50).TrailingBufferZ one(50).RemoteFilter(ture)

Is it possible to keep selected rows checked in the grid even when user filter the data using header filter on the column Name?

Knowing that If i removed PruneRemoved(false), then i selected a row and filtered the data , i would get a javascript error :
In chrome, the error say: Uncaught TypeError: Cannot read property 'length' of undefined

Nov 10, 2014, 7:23 AM
Hi @UnifyEducation,

As far as I can know the SelectionMemory doesn't support your scenario, unfortunately.

You can try to implement it by your own.

Nov 13, 2014, 8:47 AM
Hi Danill,

Ok, thanks for your reply.