Raised when the user tries to delete a node, this event lets you cancel the operation.
JavaScript Copy Code |
---|
function onNodeDeleting (sender, args) |
NodeDeleting handlers receive an event object of type NodeEventArgs.
When the user deletes a node, the links connected to it are deleted too. However, the LinkDeleting validation event is not raised in that case.
To handle the NodeDeleting event, assign the name of the respective JavaScript function (for example 'onNodeDeleting') to the NodeDeletingScript property.