Skip to main content

TreeViewNodeClickEventArgs.NodeInfo Property

Returns information about a node related to the event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public ITreeViewNodeInfo NodeInfo { get; }

Property Value

Type Description
ITreeViewNodeInfo

An object that implements the ITreeViewNodeInfo interface and stores information about a node related to the event.

Remarks

Use the DxTreeViewNode.Click event to react to click on a specific item. The following code snippet handles the Click event:

<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.";
    }
}

Single Node Click

See Also