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

[Solved] Grid Batch Update

2 Answers 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 19 Feb 2015, 12:02 PM
Dear Team,
I have got a requirement to update/create multiple grid values in only one single call.
Like I have one tabstrip with three grids under it.
and user is allowed to edit multiple records and he will click master save/update button which should save all the records from all the grids present on the page.
This is to reduce the server calls to update one by one grid records.
Is there possible solution to get all the updated values from all grids present on the page for bulk update?? and then make a service call which will update the records. 
Please let me know.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 23 Feb 2015, 07:57 AM
Hello Sandeep,

There is no feasible way to achieve this - each of the Grid uses its own dataSource with separate transport configurations. You cannot combine and make a single request. The only work-around which has several limitations is to create hidden input elements inside the column template and submit all of them when a form wrapping all the Grids is submitted. Similar approach is used here:

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/post-grid-with-form

Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sandeep
Top achievements
Rank 1
answered on 23 Feb 2015, 08:57 AM
Hey Petur,

Thank you for the response. 
Tags
Grid
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Sandeep
Top achievements
Rank 1
Share this question
or