ASPxTreeList.StartNodeEditing Event

Enables you to prevent a node from being edited.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

public event TreeListNodeEditingEventHandler StartNodeEditing
Public Event StartNodeEditing As TreeListNodeEditingEventHandler

Event Data

The StartNodeEditing 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 StartNodeEditing event occurs when an end-user has clicked the Edit command or the ASPxTreeList.StartEdit method has been called. To prevent switching the ASPxTreeList to edit mode, set the event parameter's Cancel property to true.

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

The StartNodeEditing event isn't raised when an end-user starts editing a new node.

To learn more, see Data Editing.

See Also