Back to Devexpress

TreeViewNodeEventArgs.NodeInfo Property

blazor-devexpress-dot-blazor-dot-treeviewnodeeventargs.md

latest1.4 KB
Original Source

TreeViewNodeEventArgs.NodeInfo Property

Returns information about a node related to the event.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public ITreeViewNodeInfo NodeInfo { get; }

Property Value

TypeDescription
ITreeViewNodeInfo

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

|

Remarks

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

@code {
    string SelectedGroup = "none";

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

Online Demo

TreeView - Selection

See Also

TreeViewNodeEventArgs Class

TreeViewNodeEventArgs Members

DevExpress.Blazor Namespace