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 C1WebTreeView Groups

Adding C1WebTreeView Groups

To add a new C1WebTreeViewGroup to an existing C1WebTreeView using the C1WebCommand editor, complete the following:

Note: A group is classified as a parent node/item that contains one or more child nodes/items.

1.   Right-click an existing C1WebTreeView control on the Web form and select Edit from its context menu. The C1WebCommandEditor appears.

 

2.   To add a new C1WebTreeView Group to the existing C1WebTreeView, select Item2 in the tree view of the editor and select Add Child from its context menu or from its toolbar. A new C1WebTreeViewGroup and a sub tree item is added to Item2. Set the subtree item's Text property to Item2.1.

3.   Select OK. The new Group Item2 appears in the C1WebTreeView.

4.   To add more groups to C1WebTreeView select any item in the C1WebTreeView and select Add Child.

Note: You can't add a group if you select a C1WebTreeViewGroup and select Add Child. This adds a child item to the selected group instead of adding a new group.


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