TreeViewNodeClickEventArgs.NodeInfo Property
In This Article
Returns information about a node related to the event.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
public ITreeViewNodeInfo NodeInfo { get; }
#Property Value
Type | Description |
---|---|
ITree |
An object that implements the ITree |
#Remarks
Use the DxTreeViewNode.Click
event to react to click on a specific item. The following code snippet handles the Click event:
razor
<DxTreeView>
<Nodes>
<DxTreeViewNode Click=@OnClick Text="Form Layout" />
<DxTreeViewNode Text="TreeView" />
<DxTreeViewNode Text="Tabs" />
</Nodes>
</DxTreeView>
@Message
@code {
string Message { get; set; }
void OnClick(TreeViewNodeClickEventArgs args) {
var Node = args.NodeInfo;
Message = Node.Text + " was clicked.";
}
}
See Also