Exago .NET API Documentation
CustomTreeFolder Class
Members  Example 
WebReports.UI.Controls Namespace : CustomTreeFolder Class
A CustomTreeFolder object can be added to the Report Tree to contain CustomTreeNodes. This facilitates the addition of custom (non-Exago) items to the Report Tree.
Syntax
public class CustomTreeFolder : TreeNode 
Example
OnAfterReportsList Server Event custom code that adds custom items to the Report Tree
//Get the tree object from the arguments array.
TreeNodeCollection tree = (TreeNodeCollection)args[0];

//Add a new folder named "Custom Items" to contain our new custom items
//and then add it to the tree.
TreeNode folder = new CustomTreeFolder("Custom Items");
tree.Add(folder);

//Add a new custom item to the folder, with the name My Test Item 0
//passed into the constructor of the item. Use the icon 
TreeNode item0 = new CustomTreeNode("My Test Item 0");
item0.ImageName = "TreeActiveRole.png";
folder.Nodes.Add(item0);

//Add a new custom item to the folder, with the name My Test Item 1
//passed as the Text property of the item
TreeNode item1 = new CustomTreeNode();
item1.Text = "My Test Item 1";
item1.ImageName = "DropDownArrow.png";
folder.Nodes.Add(item1);

//Add a new custom item to the folder, with the name My Test Item 2
TreeNode item2 = new CustomTreeNode("My Test Item 2");
item2.ImageName = "TreeActiveRole.png";
folder.Nodes.Add(item2);
Inheritance Hierarchy

System.Object
   WebReports.UI.Controls.TreeNode
      WebReports.UI.Controls.CustomTreeFolder

See Also

Reference

CustomTreeFolder Members
WebReports.UI.Controls Namespace

Exago Knowledge Base

Adding Custom Items to the Report Tree