TreeViewNodeInfo Class

Provides information about a node.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class TreeViewNodeInfo :
    ITreeViewNodeInfo

Remarks

<button type="button" @onclick="@GetName">Get selected node name</button>

<DxTreeView @ref="@SampleTreeView" Data="@ChemicalElements" AllowSelectNodes="true"
    NameExpression="@(dataItem => ((ChemicalElementGroup)dataItem).Name)"
    ChildrenExpression="@(dataItem => ((ChemicalElementGroup)dataItem).Groups)">
</DxTreeView>

@code  {
    DxTreeView SampleTreeView;
    string SelectedNodeName = "none";

    void GetName()
    {
        SelectedNodeName = SampleTreeView.GetSelectedNodeInfo().Name;
    }
}

Inheritance

Object
TreeViewNodeInfo

Implements

See Also