PDA

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



UnifyEducation
Nov 07, 2014, 5:48 PM
Hello,

I am using the following example:

http://mvc.ext.net/#/GridPanel_Infinite_Scrolling/Buffered_Scrolling/

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

Daniil
Nov 10, 2014, 8: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.

UnifyEducation
Nov 13, 2014, 9:47 AM
Hi Danill,

Ok, thanks for your reply.