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

Row selection across pages

3 Answers 301 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Khushali
Top achievements
Rank 1
Khushali asked on 09 Apr 2012, 06:39 AM
Hi,

I have a kendo grid, where i have enabled multiple row selection. Right now, i can select rows by using shift key and clicking on the rows in a page. But, when i move to other page, rows that were selected in last page does not remain selected. I want them to remain selected and also, that the user should be able to select new rows across the pages. Is it possible?

Regards,
Khushali

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 10 Apr 2012, 09:42 AM
Hi Khushali,

I am afraid that this functionality is currently not supported out of the box. As a workaround I can suggest to store the indexes of the selected rows (.k-state-selected) manually on the requestStart event of the dataSource and re-select them on the dataBound event of the grid. Please have in mind that this approach will not work if the number or position of the rows has been changed (after CRUD operations for example).

Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
hungvm
Top achievements
Rank 1
answered on 23 May 2012, 03:53 PM
I am struggling with row selection across pages too. Please post a very simple example so I can learn from it. Thanks.
0
Alexander Valchev
Telerik team
answered on 28 May 2012, 10:35 AM
Hello Hung,

At this jsFiddle page you will find a small example that uses the aforementioned approach in action. I would like to remind you once again that the suggested solution will not work if uids are changed (when data is fetched from the server e.g. with server paging).

Greetings,
Alexander Valchev
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
Khushali
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
hungvm
Top achievements
Rank 1
Share this question
or