Check documentation for the latest version of dhtmlxSuite onBeforeDeleteItem DHTMLX Docs

onBeforeDeleteItem

fires before item's deleting

boolean onBeforeDeleteItem(string|number id){ ... };

Parameters

idstring|numberthe item's id

Returns

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