In my gridRowUpdating() event, I perform some client-side validation. If the validation doesn't pass, I cancel the update by calling e.set_cancel(true);
This works fine, except for this big caveat: the row will then revert back to its original values. This is bad because all the information that the user provided then goes away, and he has to start all over again!
Is there any way to cancel the Gridview's Update, without clearing out the data in the row?
*bump*
Any help on this guys?
Unfortunately the grid assumes that the action for the row is canceled completely and returns old values for the whole row.
I can suggest to remember all of the cell values in the rowUpdating event handler and then write a helper function that will be executed on a timeout which would call set_value for each cell and set the new values on the row cells again.