Check documentation for the latest version of dhtmlxSuite onBeforeDeleteItem DHTMLX Docs

onBeforeDeleteItem

fires before item's deleting

boolean onBeforeDeleteItem(string|number id);
idstring|numberthe item's id
booleantrue to allow item's deleting

Example

myTreeView.attachEvent("onBeforeDeleteItem",function(id){
    // your code here
    return true;
});

Details

the event is blockable: return false to block the item's deleting

Back to top