aspnet-devexpress-dot-web-dot-aspxtreelist-dot-aspxtreelist-1f6e4dce.md
Enables you to prevent changes made within a node from being discarded.
Namespace : DevExpress.Web.ASPxTreeList
Assembly : DevExpress.Web.ASPxTreeList.v25.2.dll
NuGet Package : DevExpress.Web
public event TreeListNodeEditingEventHandler CancelNodeEditing
Public Event CancelNodeEditing As TreeListNodeEditingEventHandler
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. |
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