findItemByValue returning null

2 posts, 0 answers
  1. Gijo
    Gijo avatar
    26 posts
    Member since:
    Jan 2008

    Posted 15 Jan 2010 Link to this post

    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();  
            } 

  2. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 18 Jan 2010 Link to this post

    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.
Back to Top