Check documentation for the latest version of dhtmlxSuite onBeforeDelete DHTMLX Docs

onBeforeDelete

fires before item deleting is initiated

void onBeforeDelete(string|number id);
idstring|numberthe item's id

Example

data.attachEvent("onBeforeDelete", function (id){
     //any custom logic here
     return true;
});

Details

the event is blockable, if false value is returned by a custom method, the default reaction (the item's deleting) will be blocked

Back to top