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
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.