This is a migrated thread and some comments may be shown as answers.

Grid with Multiple selection should retain the selection in Virtual Scrolling

1 Answer 349 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krishna
Top achievements
Rank 1
Krishna asked on 09 May 2014, 12:51 PM
Hi Team,

I am developing a HTML5 Page with Kendo Grid controls.

I have enabled virtual scrolling and  Multiple row selection in grid. Virtual scrolling is working cool.

but the problem am facing is I cant retain the selection after scrolls.

For. eg:

1)  I am selected one row in Page1, after scroll to second page the selection has gone. I want to retain the selection.

2) If I selected a row in Page 1 and selected another row in Page 3 and scrolling to Page 5 and again if I scroll up I want to retain those selected values.

Please do the needful to work this. How can i achieve this.

Thanks in Advance.

Krishna.



1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 12 May 2014, 08:48 AM
Hi Krishna,


The current behavior is by design i.e. the Grid does not preserve the selection when a paging is performed or when a new set of data is loaded when the virtual scrolling is enabled. You should implement a custom solution to achieve this, for example you could maintain a custom selection to store the selected rows ids and select them again when the dataBound event is fired.

Here is an example which demonstrates the approach in action. As stated this is not supported, so the current example may not fulfill the exact requirements. You could use it as a base and modify it according the current needs.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Krishna
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or