I am using an editable grid. I’ve noticed several edit-related events. afterEditEnd
, afterEditStart
, beforeEditEnd
, beforeEditStart
.
beforeEditEnd
is particularly useful to prevent editing from being completed. A handler for this event can return false
in that case. This means that you can send the new value of the cell to the server and return true if the operation completes. But the request must be synchronous and the api of dhx.ajax
is asynchronous.
It would be useful in the future to include an asynchronous way to indicate that the edit operation can be completed. Some grids pass a callback to an event of this type.