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

"My Portal" - Accessing dynamically loaded user controls client side

1 Answer 73 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 31 Jan 2008, 05:01 AM
Essentially I have the "My Portal" demo running only with the CurrentDockStates list stored in a database. I dynamically load some user controls as per the demo. How can I access the dynamic user controls client side? I am using this code within the user control's file:
var SomeControl = $find('<%= SomeControlID.ClientID %>');   
The client ID is given but SomeControl is null.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 04 Feb 2008, 02:45 PM
Hi Josh,

In this particular example you can do

dock._contentContainer.getElementsByTagName("DIV")[0])

which will give you the update panel element inside the user control and from then on you can get any other control inside it.

All the best,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Josh
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or