Occurs after a new node has been added to the ASPxTreeList.
public event ASPxDataInsertedEventHandler NodeInserted
Public Event NodeInserted As ASPxDataInsertedEventHandler
The NodeInserted event handler receives an argument of the ASPxDataInsertedEventArgs type. The following properties provide information specific to this event.
|AffectedRecords||Gets the number of records affected by the update operation.|
|Exception||Gets the exception (if any) that was raised during the update operation.|
|ExceptionHandled||Gets or sets whether an exception raised during the update operation was handled in the event handler.|
|NewValues||Gets a dictionary that contains the values of the non-key field name/value pairs in the row to be inserted.|
End-users can create new nodes by clicking the New command. Use the ASPxTreeList.StartEditNewNode method to switch the ASPxTreeList to edit mode in code, and specify a new node's values. When finished, click the Update button. This creates a new node with the specified values, and appends it to the required position.
To cancel the insert operation, handle the ASPxTreeList.NodeInserting event.
To learn more, see Adding and Deleting Nodes.