Dynamic User Controls and Repeater

2 posts, 0 answers
  1. Rafael Janetzek
    Rafael Janetzek avatar
    4 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2009 Link to this post

    Hi there,

    I am loading UserControls dynamically onto my Page as shown in your Samples. Now I have a problem with following Setup:

        <UserControl A>
                   <User Control B>
                           <DIV id=container runat=server>
                                     <Button1>  ( OnClick= Should replace Dynamic User Control A with another Control)
                                     <Button2>  ( OnClick= Update "container")
                           <DIV runat=server>                
                   <User Control B>
        </UserControl A>

    The problem now is that nothing gets updated if I press Button1. All events on the server side occur as expected. In the Button1 click event I load the new User Control into the ContentPanel (which is ajaxified with RadAjaxManager).

    If I move Button1 above the container all works as expected (because the whole ContentPanel is ajaxified as far as I know) . Only if I put the button into the div container which is ajaxified with Button2 this doesn't work. Am I missing something or doing something wrong?
  2. Veli
    Veli avatar
    2002 posts

    Posted 11 Dec 2009 Link to this post

    Hello Rafael,

    Does this entire scenario work as expected without AJAX at all? If your entire ContentPanel  is ajaxified by itself, all controls inside should successfully AJAX-ify ContentPanel.

    Sincerely yours,
    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.
Back to Top