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

[Solved] Can I use $find from anywhere in the Control Tree hierarchy?

1 Answer 118 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
bemara57
Top achievements
Rank 1
bemara57 asked on 22 May 2008, 10:40 PM
I have deeply nested custom user controls and I'm trying to use $find("<%= RadTabStrip1.ClientID %>") deep within the hierarchy to find an "ancestor" control. For some reason I get a Javascript error saying that there are no properties for it. But when I execute the same Javasript function in the same user control that has RadTabStrip1, it works fine. So can I use $find to find a control 4 parents up the hierarchy for example, or am I only supposed to use $find in the same aspx page that has the control? I'm trying to troubleshoot to see if this is the problem or might be something else. Thanks for any help on this.

1 Answer, 1 is accepted

Sort by
0
Chris Gillies
Top achievements
Rank 1
answered on 23 May 2008, 10:02 AM
Is this expected to work? Can you do the same with $get which is shortcut for document.getElementbyID?
Tags
Ajax
Asked by
bemara57
Top achievements
Rank 1
Answers by
Chris Gillies
Top achievements
Rank 1
Share this question
or