Find a node

3 posts, 0 answers
  1. Mehrdad
    Mehrdad avatar
    9 posts
    Member since:
    Mar 2009

    Posted 04 Mar 2009 Link to this post

    Hi,
    I have a treeview in a usercontrol.
    In a javascript function I've written :
    var treeView = $find("<%= RadTreeView1.ClientID %>");  
    but it didn't find the treeview.
    What should I do?
  2. Yana
    Admin
    Yana avatar
    4896 posts

    Posted 04 Mar 2009 Link to this post

    Hello Mehrdad,

    We're not able to help you unless you provide us with a sample code and a more detailed explanation of this issue.

    All the best,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mehrdad
    Mehrdad avatar
    9 posts
    Member since:
    Mar 2009

    Posted 04 Mar 2009 Link to this post

    I have a WebUserControl, I've added the tree to this.
    and in this webUsercontrol I've wrote "
    var treeView = $find("<%= RadTreeView1.ClientID %>");  

    but in runtime an javascript error appears that say, Object Expected that refers exactly to above line. and it means it couldn't find the control.
    I'm using telerik 2007.
Back to Top