Documentation

onBeforeDelete

fires before item deleting

boolean onBeforeDelete(id id){ ... };

Parameters

ididid of item in question

Returns

booleanreturning false will prevent item deleting

Example

some.attachEvent("onBeforeDelete", function(id){
    //... some code here ... 
    //return false to block operation
    return true;
});

Details

In case of Tree and TreeTable - event will be called only for item which is deleted, and will not be called for its childs

See also

Back to top