Skip to content

onAfterAdd

fires after adding an item to the datastore

function onAfterAdd(
// the client-side ID of the new data item
id: string|number,
// the index, at which the new item was added
index: number
): void
grid.data.attachEvent("onAfterAdd", function(id, index){
console.log("New record was added!");
});

The event does not fire for rows that were added during loading (parsing) from an external file or object.