Skip to main content
A newer version of this page is available. .

TreeViewNodeEventArgs.NodeInfo Property

Returns information about a node related to the event.

Namespace: DevExpress.Blazor

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

<DxTreeView AllowSelectNodes="true" 
    SelectionChanged="@SelectionChanged">
      ...
</DxTreeView>

@code  {
    string SelectedGroup = "none";

    void SelectionChanged(TreeViewNodeEventArgs e) {
        SelectedGroup = e.NodeInfo.Text;
        InvokeAsync(StateHasChanged);
    }
}      

The image below shows the result.

TreeView Node Selection

Online Demo

TreeView - Selection

See Also