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

Kendo Grid with Checkboxes - View selected items in another page

3 Answers 267 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suresh
Top achievements
Rank 1
Suresh asked on 16 Dec 2014, 06:16 PM
In my Kendo grid, I am displaying checkboxes for users to select rows. Once the rows are selected, the user clicks on a button to view the selected records in another view for additional processing. How do I pass the selected rows' ids to the controller/another view?

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 18 Dec 2014, 02:47 PM
Hi Suresh,

This can be done by maintaining an array with the ID of the selected items, then sending it to the server using an Ajax request. I would recommend checking this example, where the first part of that approach is illustrated.
Another approach would be to get the selected items array, iterate over it and pass each row to the Grid's dataItem method, get the ID of the row and push it in another array. Then, send then the array to the server using Ajax.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Suresh
Top achievements
Rank 1
answered on 18 Dec 2014, 10:27 PM
Thanks. Will try your solutions and let you know.
0
Suresh
Top achievements
Rank 1
answered on 07 Jan 2015, 06:16 PM
Thanks . It worked.
Tags
Grid
Asked by
Suresh
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Suresh
Top achievements
Rank 1
Share this question
or