ASPxTreeView.NodeCommand Event
Fires when a control contained within a node template raises the Command event.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Event Data
The NodeCommand event's data class is TreeViewNodeCommandEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
CommandArgument | Gets the argument for the command. Inherited from CommandEventArgs. |
CommandName | Gets the name of the command. Inherited from CommandEventArgs. |
CommandSource | Gets an object representing a control which forced a postback. |
Node | Gets a node object related to the event. |
Remarks
An ASPxTreeView control allows the contents of its nodes to be customized through defining templates. A template of a node can be specified by the ASPxTreeView.NodeTemplate or TreeViewNode.Template property. A template is a set of HTML elements and controls which constitute a layout for a particular node.
The NodeCommand event is fired when any control contained within a templated node raises the NodeCommand event. Write a NodeCommand event handler to perform specific actions each time the event is raised by any control contained within any templated node. The NodeCommand event provides a parameter of the TreeViewNodeCommandEventArgs type.