ComponentOne WebMenus and WebBars for ASP.NET: WebMenus and WebBars for ASP.NET Task-Based Help > C1WebTreeView Tasks > Adding Groups and Items Using C1WebCommandEditor > Adding a Leaf Node Item Above an Existing Item

Adding a Leaf Node Item Above an Existing Item

To add a new item above an existing C1WebCustomTreeItem (link item) using the C1WebCommandEditor, complete the following steps:

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 C1WebCommand Editor appears.

2.   To add a new item above the selected item, click on Insert Item from the toolbar or select Insert Item from the selected item's context menu. A new tree item appears above 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 © 1987-2009 ComponentOne LLC. All rights reserved.