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

2 posts, 0 answers
  1. Josh
    Josh avatar
    5 posts
    Member since:
    Jan 2008

    Posted 30 Jan 2008 Link to this post

    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.
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 04 Feb 2008 Link to this post

    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
Back to Top