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

Update a RadAjaxPanel on every postback?

3 Answers 162 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 16 Feb 2009, 02:55 PM
I have a RadAjaxPanel on my masterpage and I'd like to update this panel whenever a postback from another RadAjaxPanel occurs.

Using the ASP.NET UpdatePanel, this would be very easy to achieve, e.g. the following panel (with UpdateMode=Always) is updated whenever a postback is triggered from another UpdatePanel:

<asp:UpdatePanel ID="myPanel" runat="server" UpdateMode="Always"
 <ContentTemplate> 
  <%= DateTime.Now.ToString("G") %> 
 </ContentTemplate> 
</asp:UpdatePanel> 

So far I have not found how to achieve the same using the RadAjaxPanel. And also using an asp:UpdatePanel in the master page does not work, since it is not updated when the postback is triggered by a RadAjaxPanel.

How can I update a RadAjaxPanel (located in the masterpage) whenever an async postback is triggered by another RadAjaxPanel?

Thanks for your help.

3 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 17 Feb 2009, 08:01 AM
OK, two updates:
  • First of all, I was posting in the wrong forum, since in that application I was still using the "classic" RadControls for ASP.NET (without Ajax).
  • Second: using the RadAjaxPanel from the ASP.NET Ajax Suite, it works as expected, although the performance seems to be worse than when using the asp:UpdatePanel.

Best regards
Martin
0
Iana Tsolova
Telerik team
answered on 17 Feb 2009, 11:54 AM
Hello Martin,

Please find the below articles for more information on how to use RadAjax in your scenario:
http://www.telerik.com/help/aspnet-ajax/ajxcontrolsinajaxpanelandajaxsettings.html
http://www.telerik.com/help/aspnet-ajax/ajxmasterpageupdateeverywhere.html
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx

Check it out and let me know if any questions arise.

Additionally, you could send us a sample application illustrating the performance issues you are facing. Thus we could we could investigate it in depth locally in order to provide a resolution for you.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Martin
Top achievements
Rank 1
answered on 17 Feb 2009, 01:57 PM
Thanks for the links, I will check them out.

Regarding the (small) performance issue: what I noticed (using Fiddler) was that with the asp:UpdatePanel there was only one request when a button inside the panel is clicked, while with the RadAjaxPanel, there were additional requests for images and CSS files.

Best regards
Martin
Tags
Ajax
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or