Skip to main content
All docs
V25.1
  • TreeViewNodeClickEventArgs.NodeInfo Property

    Returns information about a node related to the event.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.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