Skip to main content

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

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
AffectedRecords Gets the number of records affected by the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
Exception Gets the exception (if any) that was raised during the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionHandled Gets or sets whether an exception raised during the update operation was handled in the event handler. Inherited from ASPxDataBaseUpdatedEventArgs.
NewValues 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.

See Also