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

RadGrid Batch Update NewValues Question

0 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JazzBox
Top achievements
Rank 1
JazzBox asked on 19 Oct 2017, 01:11 PM

Hi there.

We're working on a project with RadGrid controls that are doing batch updates.

The event that we have attached to the update event (RadGridActionGroup_UpdateCommand) has 2 parameters where we're sending to the db for updates.

protected void RadGridActionGroup_UpdateCommand(object sender, GridCommandEventArgs e)
   {
       try
       {
           Hashtable newValues = (e.CommandArgument as GridBatchEditingEventArgument).NewValues;
 
           performActionGroupModelUpdate(newValues);
       }
       catch (Exception ex)
       {
           ConfigurationController.AddMessage(ex.Message.ToString());
       }
   }

 

When a user updates only one field in a row of say, five values, I would expect that only changed values would be sent to this event method, however even though only one field was changed, all of the values (updated as well as non-updated) are sent to to this event.

Is this by design or am I doing something wrong?

 

Thanks in advance

No answers yet. Maybe you can help?

Tags
Grid
Asked by
JazzBox
Top achievements
Rank 1
Share this question
or