TreeViewNodeEventArgs.NodeInfo Property

Returns information about a node related to the event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public ITreeViewNodeInfo NodeInfo { get; }

Property Value

Type Description
ITreeViewNodeInfo

An object that implements the ITreeViewNodeInfo interface and provides 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