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

Find a node

2 Answers 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mehrdad
Top achievements
Rank 1
Mehrdad asked on 04 Mar 2009, 10:16 AM
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 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Mar 2009, 01:06 PM
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.
0
Mehrdad
Top achievements
Rank 1
answered on 04 Mar 2009, 03:20 PM
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.
Tags
TreeView
Asked by
Mehrdad
Top achievements
Rank 1
Answers by
Yana
Telerik team
Mehrdad
Top achievements
Rank 1
Share this question
or