Back to Devexpress

ASPxTreeList.CancelNodeEditing Event

aspnet-devexpress-dot-web-dot-aspxtreelist-dot-aspxtreelist-1f6e4dce.md

latest2.9 KB
Original Source

ASPxTreeList.CancelNodeEditing Event

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

Declaration

csharp
public event TreeListNodeEditingEventHandler CancelNodeEditing
vb
Public Event CancelNodeEditing As TreeListNodeEditingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NodeKeyGets 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

js-ASPxClientTreeList.CancelEdit

ASPxTreeList.CancelEdit

NodeUpdating

StartNodeEditing

Tree List

ASPxTreeList Class

ASPxTreeList Members

DevExpress.Web.ASPxTreeList Namespace