Check documentation for the latest version of dhtmlxSuite onBeforeDelete DHTMLX Docs

onBeforeDelete

fires before item deleting is initiated

boolean onBeforeDelete(string|number id);
idstring|numberid of the item which will be removed
booleantrue to trigger the default action, false to block it

Example

myList.attachEvent("onBeforeDelete", function (id){
    // your code here
});

Details

the event is blockable, returning false will block the default action

Back to top