A validation event raised while the user is drawing a new node.
JavaScript Copy Code |
---|
function onNodeCreating (sender, args) |
NodeCreating handlers receive an event object of type NodeEventArgs.
NodeCreating is raised after each mouse movement while drawing a new node. setCancel will change the mouse cursor to DisallowCursor (a Stop icon by default). The event is raised once again when the mouse button is released. setCancel in that case will cancel the node creation.
To handle the NodeCreating event, assign the name of the respective JavaScript function (for example 'onNodeCreating') to the NodeCreatingScript property.