Step 1: Set up the First Group of Tree Items
To configure the first group of items for C1WebTreeView at design-time, complete the following steps:
1. Add a C1WebTreeView control to your Web page.
2. Select Auto Format from the C1WebTreeView Tasks menu. The Auto Format dialog box opens.
3. Select Windows XP from the Select a Scheme list box, click Apply, and then click OK. The new style appears for the C1WebTreeView.
4. Right-click the C1WebTreeView control and select Edit from its context menu. The C1WebCommandEditor appears.
5. In the C1WebCommandEditor set C1WebTreeView's Width property to 325px, and then set Item1 and Item1.1's properties to the following:
Tree Items |
Property Settings |
Item1 |
Text = News PopulateOnDemand = True |
Item1.1 |
Text = Africa NavigateUrl = http://news.bbc.co.uk/2/hi/africa/default.stm PopulateOnDemand = True |
6. Set the first C1WebTreeViewGroup's Collapsed property to True.
7. Delete Item1.2 from the C1WebCommandEditor and add a new C1WebTreeViewGroup that has three child items. For more information on adding groups to C1WebTreeView at design-time, see Adding C1WebTreeView Groups.
The three new child items appear in the C1WebCommandEditor.
8. Set the second C1WebTreeViewGroup's Collapsed property to True.
9. Set the first, second, and third item's properties in the second C1WebTreeViewGroup to the following:
Tree Items |
Property Settings |
First Item |
Text = Nigeria troops kill oil thieves NavigateUrl = http://news.bbc.co.uk/2/hi/africa/4574360.stm Tooltip = Security forces in Nigeria have killed 12 men they say were stealing oil from a pipeline in the southern Niger Delta. WrapText = False |
Second Item |
Text = Cairo violence toll rises to 27 NavigateUrl = http://news.bbc.co.uk/2/hi/africa/4575496.stm Tooltip = The death toll has risen to 27 Sudanese deaths from an Egyptian police operation to break up a protest camp. WrapText = False |
Third Item |
Text = Food aid cut for Zambia refugees NavigateUrl = http://news.bbc.co.uk/2/hi/africa/4573836.stm Tooltip = Rations for more than 80,000 refugees in Zambia are being halved from Sunday because of a lack of international aid. WrapText = False |
The second C1WebTreeViewGroup appears like the following:
10. Delete the default item, Item2 from the C1WebTreeView1.
|