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

Saving multiple grid records at a time

1 Answer 267 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiyo
Top achievements
Rank 2
Jiyo asked on 06 Mar 2020, 04:07 AM

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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 09 Mar 2020, 08:10 AM

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
Tags
General Discussions
Asked by
Jiyo
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or