Nov 07, 2014, 4:48 PM
[CLOSED] buffered scrolling + selected rows + filtering
Hello,
I am using the following example:
http://mvc.ext.net/#/GridPanel_Infin...red_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
I am using the following example:
http://mvc.ext.net/#/GridPanel_Infin...red_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
Last edited by Daniil; Nov 18, 2014 at 5:22 PM.
Reason: [CLOSED]