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

Keep selection on page change

1 Answer 283 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick Rioux
Top achievements
Rank 1
Patrick Rioux asked on 17 Feb 2012, 06:03 PM
How can I easily keep the selected rows by the user and put back the selection when scrolling back to this page (or when the record is shown because sort could change the order). I would keep the unique Id for each row records but struggling how to easily do that.
I know how to get the raw data but don't know how to do it using the datasource.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 Feb 2012, 01:18 PM
Hello Patrick,

You may use the Grid change event in order to get the selected item's id and then to reapply it during the dataBound event as shown in the following jsFiddle sample:

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