ASPxTreeList.NodeUpdating Event
Enables you to prevent a node from being updated.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll
Declaration
Event Data
The NodeUpdating event's data class is ASPxDataUpdatingEventArgs. 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. |
Keys | Gets a dictionary of field name/value pairs that represent the primary key of the row to update. |
NewValues | Gets a dictionary that contains the values of the non-key field name/value pairs in the row to be updated. |
OldValues | Gets a dictionary that contains the original field name/value pairs in the row to be updated. |
Remarks
The NodeUpdating event occurs when an end-user has changed cell values and tries to pass them to the data source by clicking the Update button. To cancel the update operation, set the event parameter’s Cancel property to true.
If you use edit form templates, you must process the update manually in the NodeUpdating event handler.
After a node has been updated, the ASPxTreeList.NodeUpdated event is raised.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NodeUpdating event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.