MobileForms Toolkit Documentation

AdvancedTree.NodeAdding Event

Occurs when a new Node should be provided for AdvancedTree's NodeCollection.

public event NodeAddingEventHandler NodeAdding;

Event Data

The event handler receives an argument of type NodeAddingEventArgs containing data related to this event. The following NodeAddingEventArgs properties provide information specific to this event.

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.
Level Gets the depth of a node that is about to be added.
Node Sets a node that will be added into AdvancedTree's NodeColection.
NodeIndex Gets an index of a node that is about to be added.
ParentNode Gets a parent node of node that will be added into AdvancedTree's NodeColection.

Remarks

Once you call the LoadDataManually method, AdvancedTree fires this event regularly for you to provide it a Node object filled with data. The arguments for this event is derived from CancelEventArgs. You have to set the Cancel property in the event handler to true to stop loading more data. If DelayLoad is set to true, the event stops firing as soon as the nodes fill up AdvancedTree's client area. However, as soon as the user scrolls down to see more nodes, the event starts firing again for the user to provide additional Node objects to be added into the NodeCollection.

See Also

AdvancedTree Class | Resco.Controls.AdvancedTree Namespace | LoadDataManually