Saving multiple grid records at a time

2 posts, 0 answers
  1. Jiyo
    Jiyo avatar
    17 posts
    Member since:
    Oct 2019

    Posted 05 Mar 2020 Link to this post

    Hiii,

    I have a grid which has a checkbox cell.......the thing is when i check each row i need to push the data of corresponding row into an array. I have only one save button.

     

    Is it possible to check multiple rows and save the corresponding datas into an array and pass it to the server when i click the save button.

    I have attached an image for more understandability.

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 09 Mar 2020 Link to this post

    Hello, Jiyo,

    Yes, this is possible.

    For example, when the save button is clicked, go over the data array and filter it based on the assigned value. Each item that has the assigned property set to true, should be part of the updated collection. Then this collection can be sent to the server.

    Also, this example for batch editing can prove helpful as well:

    https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-in-cell/

    Regards,
    Stefan
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top