onBeforeDelete
fires before an item is removed
function onBeforeDelete( // the ID of the item id: string|number): boolean
Returns
Section titled “Returns”boolean
returning false will prevent the item from being removed
Example
Section titled “Example”grid.data.attachEvent("onBeforeDelete", function(id){ //... some code here ... // return false to block operation return true;});
Details
Section titled “Details”Returning false from the event handler will block further processing, and the item will not be deleted.