I have created a simple TreeView and have some nodes created from the code behind. I have tried to set the RootNode's NodeExpand ClientSide, ServerSide, ServerSideCallBack. I just can't seem to expand a node through my code behind. I have tried to use OnClientNodePopulated and tried to expand. Nothing works. My first node always opens collapsed. I can't even find a Expand() method on a node. I do have ExpandChildNodes(), and that is what I am calling but no luck so far. I really need help on this. This is what I have
RadTreeView1.Nodes.Clear();
RadTreeNode node = new RadTreeNode();
node.Category = "Root";
node.Value = Guid.Empty.ToString();
node.Text = "Functional Positions";
node.Checkable = false;
//added the following line just so I have a child node
node.Nodes.Add(new RadTreeNode("dummy");
node.ExpandMode = TreeNodeExpandMode.ServerSide; // I have tried setting ClientSide, ServerSide
RadTreeView1.Nodes.Add(node);
RadTreeView1.Nodes[0].ExpandChildNodes();
what I want at this point the TreeView to fire it's NodeExpand Method so I can load the actual nodes from the database.
Can you please help?
Thanks
himadri
RadTreeView1.Nodes.Clear();
RadTreeNode node = new RadTreeNode();
node.Category = "Root";
node.Value = Guid.Empty.ToString();
node.Text = "Functional Positions";
node.Checkable = false;
//added the following line just so I have a child node
node.Nodes.Add(new RadTreeNode("dummy");
node.ExpandMode = TreeNodeExpandMode.ServerSide; // I have tried setting ClientSide, ServerSide
RadTreeView1.Nodes.Add(node);
RadTreeView1.Nodes[0].ExpandChildNodes();
what I want at this point the TreeView to fire it's NodeExpand Method so I can load the actual nodes from the database.
Can you please help?
Thanks
himadri