Hello,
There is a treeview control added as a item inside a PanelBar. I tried to add a tree node to the treeview by calling "RadTreeView1.Nodes.add(node)". It is not possible to directly access the RadTreeView inside the page load.
Below code was tried but still it gives a runtime error.
RadTreeView treeViewControl = (RadTreeView)Page.FindControl("RadTreeView1");
treeViewControl.Nodes.Add(node);
Could you please let me know how i can add a node to the treeView in the page load method.
Thank you,
Sudesh
There is a treeview control added as a item inside a PanelBar. I tried to add a tree node to the treeview by calling "RadTreeView1.Nodes.add(node)". It is not possible to directly access the RadTreeView inside the page load.
Below code was tried but still it gives a runtime error.
RadTreeView treeViewControl = (RadTreeView)Page.FindControl("RadTreeView1");
treeViewControl.Nodes.Add(node);
Could you please let me know how i can add a node to the treeView in the page load method.
Thank you,
Sudesh