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

Dynamic User Controls and Repeater

1 Answer 145 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rafael Janetzek
Top achievements
Rank 1
Rafael Janetzek asked on 08 Dec 2009, 08:15 PM
Hi there,

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

<Page>
 <ContentPanel>
    <UserControl A>
          <Repeater>
               <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>
               .
               .
          </Repeater>
    </UserControl A>
 <ContentPanel>
</Page>

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?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Dec 2009, 09:22 AM
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,
Veli
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.
Tags
Ajax
Asked by
Rafael Janetzek
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or