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

Find usercontrol in raddock

2 Answers 140 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ahrensberg
Top achievements
Rank 1
Ahrensberg asked on 05 Nov 2009, 10:07 AM
Hi guys,

I have a problem finding a usercontrol added dynamically into a dockzone. I have a tabstrip in which I on demand loading usercontrols like shown in the demo TabStrip / Load on Demand RadPageView. I reach the usercontrol fine by "var tab2UserControl = this.Page.FindControl("Tab2_userControl");" if the Tabstrip (and by that the usercontrol) is placed directly at the page, but do I place the tabstrip in a raddock placed in a raddockzone, the FindControl returns null.

Any idea what to do?! I have tried a lot of different things, but nothing helps?! :-(

2 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 05 Nov 2009, 02:48 PM
Hi Ahrensberg,

If you have placed a control inside the RadDock's ContentContainer you can find it using the following code line:

RadDock1.ContentContainer.FindControl("ControlID");



All the best,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ahrensberg
Top achievements
Rank 1
answered on 05 Nov 2009, 02:50 PM
Oh yeah! Thank you! :o)
Tags
Dock
Asked by
Ahrensberg
Top achievements
Rank 1
Answers by
Pero
Telerik team
Ahrensberg
Top achievements
Rank 1
Share this question
or