Skip to main content

BootstrapTreeView.Nodes Property

Provides access to the root node child collection.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v23.2.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapTreeViewNodeCollection Nodes { get; }

Property Value

Type Description
BootstrapTreeViewNodeCollection

A BootstrapTreeViewNodeCollection object that represents the collection of child nodes owned by the root node.

Remarks

Use the Nodes property to access the root node child collection. The root node can be accessed via the ASPxTreeView.RootNode property.

Example

This example demonstrates the basic functionality of the Tree View control.

The image below shows the result:

BootstrapTreeView_Overview

<dx:BootstrapTreeView runat="server">
    <Nodes>
        <dx:BootstrapTreeViewNode Text="Home" Expanded="true">
            <Nodes>
                <dx:BootstrapTreeViewNode Text="News">
                    <Nodes>
                        <dx:BootstrapTreeViewNode Text="For Developers">
                        </dx:BootstrapTreeViewNode>
                        <dx:BootstrapTreeViewNode Text="Website news">
                        </dx:BootstrapTreeViewNode>
                    </Nodes>
                </dx:BootstrapTreeViewNode>
                <dx:BootstrapTreeViewNode Text="Our Mission">
                </dx:BootstrapTreeViewNode>
            </Nodes>
        </dx:BootstrapTreeViewNode>
        ...
    </Nodes>
</dx:BootstrapTreeView>
See Also