I implemented Tree using Load on Demand concept using Web Services. It is working perfectly. But I would like to know the best way to expand the Tree Nodes automatically on click on a context menu. I have a context menu item called "Expand All" and when the User clicks on the item on a Node which has less number of children and sub children, it works fine. If he clicks on the top of the tree, I am getting an error "maximum limit reached".
Below is the code I am using:
private sub ExpandAll(Tnode as RadTreeNode)
Below is the code I am using:
private sub ExpandAll(Tnode as RadTreeNode)
If TNode.Nodes.Count = 0 Then _
PopulateHierarchy(TNode)
RdTViewHierarchy.SelectedNode.ExpandChildNodes()
TNode.ExpandMode = TreeNodeExpandMode.ClientSide
TNode.Expanded = True
For Each TSubNode As RadTreeNode In TNode.Nodes
ExpandSelectedNode(TSubNode)
Next
End Sub