This is a migrated thread and some comments may be shown as answers.

[Solved] findItemByValue returning null

1 Answer 113 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gijo
Top achievements
Rank 1
Gijo asked on 15 Jan 2010, 04:59 PM
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.
<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();  
        } 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Jan 2010, 04:26 PM
Hello Gijo,

I've tested the scenario and couldn't observe this issue. Could you please paste simple code here so we to be able to observe the problem? Thanks

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Gijo
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or