hi,
i got a problem with expanding a node.
I am fireing the onclicknode event by javascript node.select()
In my serverside on click event i fire the Tree_NodeExpand event to add the childnodes to the selectednode and the i expand the node.
The node is expanded now, but
the expandimage is the collapsed image and the treeview thinks the node is collapsed, so i have to click twice on the collapseimage, to get the expandimage
why does the treeview thinks the node is collapsed?
Thanks for your help
i got a problem with expanding a node.
I am fireing the onclicknode event by javascript node.select()
| function selectNode(text, TreeID) |
| { |
| var treeView = $find(TreeID); |
| var node = treeView.findNodeByText(text); |
| if (node != null) |
| { |
| node.select(); |
| } |
| } |
In my serverside on click event i fire the Tree_NodeExpand event to add the childnodes to the selectednode and the i expand the node.
| protected void Tree_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) |
| { |
| TreeNode_Click(sender, e); |
| Tree_NodeExpand(sender, e); |
| e.Node.ExpandChildNodes(); |
| e.Node.Expanded = true; |
| //e.Node.Toggle(); |
| } |
The node is expanded now, but
why does the treeview thinks the node is collapsed?
Thanks for your help