Skip to content

onAfterEditStop

fires after the edit operation is finished

function onAfterEditStop(
// an object with 2 properties: 'value' - the new value of the cell, " 'old' - the old value of the cell
state: object,
// the editor object
editor: object,
// indicates whether the cell was updated after editing
ignoreUpdate: boolean
): void
grid.attachEvent("onAfterEditStop", function(state, editor, ignoreUpdate){
if(state.value != state.old){
console.log("Cell value was changed")
}
});

The value of the ignoreUpdate parameter depends on the way of editor closing. When the editor closes with the editStop method, the record is updated, while the editCancel method doesn’t save changes before closing the editor.

Articles

API