DHTMLX Docs & Samples Explorer

onBeforeDelete

Occurs before item deleting is initiated.

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

Parameters:

  • id - the item id

Description:

Event is blockable, if false value is returned by a custom method, the default reaction will be blocked.