Kendo Grid with Checkboxes - View selected items in another page

4 posts, 0 answers
  1. Suresh
    Suresh avatar
    8 posts
    Member since:
    Dec 2014

    Posted 16 Dec 2014 Link to this post

    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?
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1444 posts

    Posted 18 Dec 2014 Link to this post

    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.

     
  3. Suresh
    Suresh avatar
    8 posts
    Member since:
    Dec 2014

    Posted 18 Dec 2014 in reply to Alexander Popov Link to this post

    Thanks. Will try your solutions and let you know.
  4. Suresh
    Suresh avatar
    8 posts
    Member since:
    Dec 2014

    Posted 07 Jan 2015 in reply to Alexander Popov Link to this post

    Thanks . It worked.
Back to Top