ComponentOne WebMenus and WebBars for ASP.NET (2.0) Search HelpCentral 

Adding a Leaf Node Item Below an Existing Item

This topic demonstrates how to add a new item below an existing C1WebCustomTreeItem (link item) using the C1WebCommandEditor. An item is defined as a leaf node if it does not have child nodes and a child node if it contains other nodes.

1.   Right-click an existing C1WebTreeView and select Edit from its context menu. The C1WebCommandEditor appears.

2.   To add a new item at the last position of the selected item, click on Append Item from the toolbar or select Append Item from the selected item's context menu. A new tree item appears in the last position of Item1.

3.   Set the new item's Text property to New Item.

4.   Select OK. The New Item appears in the C1WebTreeView as a leaf node since it does not contain child nodes.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.