onBeforeDelete event for tree


I need to know if there is a way to have an event on deleting items in a tree, i didn’t find it.

Before deleted an item, i would like to verify on the server side if the removing of an item is allow.



there is not onBeforeDelete event. But there is no need to set an event handler as an item can be deleted only when you click deleteItem method. So, all you need is to call deleteItem method when the positive response is received from server.

ok thanks