Raised when a link is deleted, either programmatically or by the user.
JavaScript Copy Code |
---|
function onLinkDeleted (sender, args) |
LinkDeleted handlers receive an event object of type LinkEventArgs.
The link is removed from the Items and Links collections before the event is raised. From within an event handler you can still check the values of simple properties such as Text or Tag. Before deleting a node, all links that link to it a deleted too. So there might be several LinkDeleted events raised before NodeDeleted is raised.
To prevent users from deleting a link by pressing the DEL key, handle the LinkDeleting event.
To handle the LinkDeleted event, assign the name of the respective JavaScript function (for example 'onLinkDeleted') to the LinkDeletedScript property.