BootstrapTreeView.Nodes Property
In This Article
Provides access to the root node child collection.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapTreeViewNodeCollection Nodes { get; }
#Property Value
Type | Description |
---|---|
Bootstrap |
A Bootstrap |
#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.
- Initialize a new instance of the BootstrapTreeView class.
- Add required nodes (BootstrapTreeViewNode objects) to the
BootstrapTreeView.Nodes
collection. - Use the TreeViewNode.Text to specify the text displayed within the node content.
The image below shows the result:
<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