Find usercontrol in raddock

3 posts, 1 answers
  1. Ahrensberg
    Ahrensberg avatar
    73 posts
    Member since:
    Mar 2009

    Posted 05 Nov 2009 Link to this post

    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. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 05 Nov 2009 Link to this post

    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.
  3. Ahrensberg
    Ahrensberg avatar
    73 posts
    Member since:
    Mar 2009

    Posted 05 Nov 2009 Link to this post

    Oh yeah! Thank you! :o)
Back to Top