onBeforeDelete

fires before an item is removed

boolean onBeforeDelete(string|number id);
idstring|numberthe ID of the item
booleanreturning false will prevent the item from being removed

Example

view.data.attachEvent("onBeforeDelete", function(id){
    //... some code here ...
    // return false to block operation
    return true;
});

Details

Returning false from the event handler will block further processing, and the item will not be deleted.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.