ASPxTreeList.CancelNodeEditing Event

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

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v19.2.dll

Declaration

public event TreeListNodeEditingEventHandler CancelNodeEditing
Public Event CancelNodeEditing As TreeListNodeEditingEventHandler

Event Data

The CancelNodeEditing event handler receives an argument of the TreeListNodeEditingEventArgs type. 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