Skip to main content

ASPxTreeList.CancelNodeEditing Event

Enables you to prevent changes made within a node from being discarded.

Namespace: DevExpress.Web.ASPxTreeList

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

NuGet Package: DevExpress.Web

Declaration

public event TreeListNodeEditingEventHandler CancelNodeEditing

Event Data

The CancelNodeEditing event's data class is TreeListNodeEditingEventArgs. 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.
NodeKey Gets the edited node’s key value.

Remarks

The CancelNodeEditing event is raised in the cases listed below:

The CancelNodeEditing event enables you to prevent the ASPxTreeList from being switched to browse mode. To do this, set the event parameter’s Cancel property to true.

To obtain the edited node, use the ASPxTreeList.FindNodeByKeyValue method. The node’s key value is returned by the event parameter’s TreeListNodeEditingEventArgs.NodeKey property.

See Also