Filter RadTreeView Nodes Client side

2 posts, 1 answers
  1. Mark
    Mark avatar
    4 posts
    Member since:
    Apr 2011

    Posted 10 May 2011 Link to this post

    I have a radtreeview control on my aspx page. The treeview control is populated from a dataset on selectedindex_change event of a combobox control through asynchrounous postback.

    I have a text box in which the user enters a string, based on the string entered the nodes which contain the string in their text must only be displayed. eg:- if(treeview.node[i].text.contains(textbox.text))
                                    display node........
    To achieve this I have a textbox onkeypress event. But whenever i try "treeview.AllNodes.length" in my javascript it gives me null.
    Kindly guide me through.

  2. Answer
    Kate avatar
    1898 posts

    Posted 12 May 2011 Link to this post

    Hello Mark,

    Please try using the get_count() function, for example tree.get_nodes().get_count(). For more details you can refer to this help article.

    Best wishes,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top