RadGrid Batch Update NewValues Question

1 posts, 0 answers
  1. JazzBox
    JazzBox avatar
    8 posts
    Member since:
    Jul 2015

    Posted 19 Oct 2017 Link to this post

    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

Back to Top