ASPxTreeList.NodeInserted Event
Occurs after a new node has been added to the ASPxTreeList.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public event ASPxDataInsertedEventHandler NodeInserted
#Event Data
The NodeInserted event's data class is ASPxDataInsertedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Affected |
Gets the number of records affected by the update operation.
Inherited from ASPx |
Exception |
Gets the exception (if any) that was raised during the update operation.
Inherited from ASPx |
Exception |
Gets or sets whether an exception raised during the update operation was handled in the event handler.
Inherited from ASPx |
New |
Gets a dictionary that contains the values of the non-key field name/value pairs in the row to be inserted. |
#Remarks
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.