Hi
I have 4 grids on batch mode on a page, I have to updated all of them in once with a Save button, How do I get only the records which are changed in each grid?
Thanks
1 Answer, 1 is accepted
0
Angel Petrov
Telerik team
answered on 02 Jul 2013, 08:48 AM
Hello Shahab,
This is achievable by subscribing to the OnBatchEditCommand for every RadGrid and extracting the values from the arguments. A demonstration of this is shown in the code snippet below:
foreach (GridBatchEditingCommand command in e.Commands)
{
GridDataItem item = command.Item;
Hashtable newValues = command.NewValues;
Hashtable oldValues = command.OldValues;
}
}
Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.