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

Displaying single loading panel in master page for for all postbacks in the website

5 Answers 244 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nishanth
Top achievements
Rank 1
Nishanth asked on 23 May 2011, 09:23 PM
Hi,
I have this requirement of displaying the LoadingPanel  for all post backs in the website's content pages. So what I did is to add the RadAjaxLoadingPanel  on top of the ContentPlaceHolder of the master page as shown below. This is working for even user control's post back in the content page in my test application. So I wanted to know if the approach is correct or in future I will get some issues with this approach not working for some controls or something? Can you please point out any disadvantages of this approach ?

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
     <telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007"
   IsSticky="true" style="position:absolute; top:0; left:0; height:100%; width:100%" >
   Loading...
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" Height="200px" Width="300px">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
        </telerik:RadAjaxPanel>
    </div>
    
    </form>
</body>
</html>

5 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 25 May 2011, 03:28 PM
Hello Nishanth,

The presented approach is absolutely correct in cases you want to show the same LoadingPanel on each ajax request. there should not be any issues in future with this implementation. However in your code I noticed that except RadAjaxManager on the MasterPage you have added RadAjaxPanel control. Note that there are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Maria Ilieva
Telerik team
answered on 25 May 2011, 03:28 PM
Hello Nishanth,

The presented approach is absolutely correct in cases you want to show the same LoadingPanel on each ajax request. there should not be any issues in future with this implementation. However in your code I noticed that except RadAjaxManager on the MasterPage you have added RadAjaxPanel control. Note that there are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Nishanth
Top achievements
Rank 1
answered on 25 May 2011, 04:21 PM
Thanks a lot Maria!!
0
Kyaw
Top achievements
Rank 1
answered on 28 May 2012, 04:00 PM
Hi Maria,

Can you explain me more detail?

Now I'm facing a lot of issues with this scenario, e.g., Upload Control, RadAlert and generate excel.

Thanks a lot.
0
Maria Ilieva
Telerik team
answered on 30 May 2012, 08:35 PM
Hi Kyaw,

Could you please elaborate a bit more on the specific issues you are facing so we could provide the most proper information and possible solution for your case. It will be best to open a new forum thread or a support ticket with the required information so we could easily track the issues you are facing and do our best to fix them in the best way.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Nishanth
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Nishanth
Top achievements
Rank 1
Kyaw
Top achievements
Rank 1
Share this question
or