Hello,
I have got a treeview and in the page_load, I built the entire tree on the server side. When i try to find a node in client side by using 'findItemByValue('110')', it returns null. But if I expand the tree view till that particular node(110) and call 'findItemByValue('110')' it finds the node.
My requirement is that i need to find a node and expand the treeview till that node.
Thanks,
Gijo Joseph.
I have got a treeview and in the page_load, I built the entire tree on the server side. When i try to find a node in client side by using 'findItemByValue('110')', it returns null. But if I expand the tree view till that particular node(110) and call 'findItemByValue('110')' it finds the node.
My requirement is that i need to find a node and expand the treeview till that node.
Thanks,
Gijo Joseph.
| <telerik:RadTreeView ID="ReportRadTreeView" Height="80%" RetainScrollPosition="False" ExpandDelay="0" runat="server"></telerik:RadTreeView> |
| function ExpandNode(NodeId) { |
| var treeView = $find('<%= RadTreeView1.ClientID %>'); |
| var node = treeView.findNodeByValue(NodeId); |
| node.select(); |
| } |