Search
NodeDeleted Event

Raised when a node is deleted, either programmatically or by the user.

Syntax

JavaScript  Copy Code

function onNodeDeleted (sender, args)

Event Data

NodeDeleted handlers receive an event object of type NodeEventArgs.

Remarks

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.

See Also

DiagramView Members
DiagramView Class
MindFusion.Diagramming Namespace
NodeDeleting Event
NodeCreated Event