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

6 posts, 1 answers
  1. Nishanth
    Nishanth avatar
    18 posts
    Member since:
    Feb 2008

    Posted 23 May 2011 Link to this post

    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>
  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 May 2011 Link to this post

    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.

  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 May 2011 Link to this post

    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.

  4. Nishanth
    Nishanth avatar
    18 posts
    Member since:
    Feb 2008

    Posted 25 May 2011 Link to this post

    Thanks a lot Maria!!
  5. Kyaw
    Kyaw avatar
    10 posts
    Member since:
    Apr 2012

    Posted 28 May 2012 Link to this post

    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.
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 30 May 2012 Link to this post

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