Check documentation for the latest version of dhtmlxSuite onBeforeDelete DHTMLX Docs


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


myDataView.attachEvent("onBeforeDelete", function (id){
    // your code here


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

Back to top