Hi there,
I am trying to get an event as soon as the row editing ended but so far I had no luck to accomplish this.
I’ve created a simple table with static data:[…] and an onItemDblClick handler calling this.editRow(id).
So far so good, all the editors are shown. Now I would like to know if the user ended editing the ROW and why (ESC key or anything else clicked). There are a couple of events but what I am missing is basically one event that is fired after all onAfterEditStop or all onBeforeEditStop events were fired. Something like “onRowEditStop”
The problem with onAfterEditStop is that it get’s fired for every editor and the row data (including validation results) is not complete until all editors stopped.
I don’t like to trust on the event or column order to just react on this event on the last column editor.
I tried to use the $obj validation rule but this gets fired for every changed editor value (what btw. I assume is wrong/a bug - $obj should be called only once for the row/record) like the onDataUpdate event too. So again this can’t tell me when the editing ended.
Is there something I am missing? Any way to accomplish this?
My use case is quite simple: I must send one update with all fields for one row editing operation to the server or undo all changes if the user canceled editing.
Many thanks