Skip to main content

ASPxTreeList.NodeInserting Event

Enables you to cancel adding a new node.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public event ASPxDataInsertingEventHandler NodeInserting

Event Data

The NodeInserting event's data class is ASPxDataInsertingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewValues Gets a dictionary that contains the new field name/value pairs for the row to be inserted.

Remarks

The NodeInserting event occurs when an end-user tries to save the newly created node by clicking the Update command. To cancel the insert operation, set the event parameter’s Cancel property to true.

To create a new node, click the New command or call the ASPxTreeList.StartEditNewNode method.

After a new node has been added to the ASPxTreeList, the ASPxTreeList.NodeInserted event is raised.

See Also