Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
168
UpdateRowBatch event fired if row added and then deleted from grid
posted

On client browser, if I:

- Add a new row to grid

- then Delete the same row from grid

- and then submit the grid changes to the server

Then the UpdateRowBatch event if fired for the row added even though it was deleted.

Is this correct? Surely it should either not fire an event or also fire the DeleteRowBatch event for the row?

 

Parents
No Data
Reply
  • 130
    posted

    It looks like updaterowbatch gets fired, but you can see that the corresponding Row values are all null.

    You can add an extra validation in your updaterowbatch event to look for e.Row.DataKey == null in such a case.

     

    .

Children
No Data