Mic keeey

Mic keeey

  • NA
  • 22
  • 0

UltraWebTree Help Please

Dec 3 2007 9:30 AM
Hi,

Ive decided to implement a webtree using the Infragistic Control to help make my report viewer look clean and easy to use...

However, Im new to programming so I dont know a great deal about the infragistics controls.

So far, I have created top root nodes and child nodes as well as top items and subitems. (See below..)

// root nodes with child nodes for each root
        for (int i = 0; i < 5; i++)
        {
            rootNode = new Node();
            rootNode.Text = "Root Node" + i.ToString();
           
            for (int j = 0; j < 5; j++)
            {
                childNode = new Node();
                childNode.Text = "Child node " + i.ToString() + " " + j.ToString();
                rootNode.Nodes.Add(childNode);
            }
            treeAddCollections.Nodes.Add(rootNode);
        }

        // top level items with matching subitems for each item
        for (int l = 0; l < 5; l++)
        {
            topItem = new Item();
            topItem.Text = "Top Item " + l.ToString();

            for(int m = 0; m < 5; m++)
            {
                subItem = new Item();
                subItem.Text = "Sub Item " + l.ToString() + " " + m.ToString();
                topItem.Items.Add(subItem);
            }
            menuAddCollections.Items.Add(topItem);
        }

I was wondering whether anyone can show me some examples of code that uses the UltraWebTree control to point me in the right direction as to where to go next....??

Any help would greatly be
appreciated.

Thanks