Raised when a node is deleted, either programmatically or by the user.
JavaScript Copy Code |
---|
function onNodeDeleted (sender, args) |
NodeDeleted handlers receive an event object of type NodeEventArgs.
When the event is raised, the node is already removed from the Items and Nodes collections and all links connected to the node are deleted. From within an event handler you can still check the values of simple properties of the node such as Text or Tag.
To prevent users from deleting a node by pressing the DEL key, handle the NodeCreating event.
To handle the NodeDeleted event, assign the name of the respective JavaScript function (for example 'onNodeDeleted') to the NodeDeletedScript property.