MinDisplayTime in RadAjaxLoadingPanel has no effect

6 posts, 0 answers
  1. Valera
    Valera avatar
    7 posts
    Member since:
    Aug 2009

    Posted 28 Jul 2011 Link to this post

    Toolkit version: Q2 2011

    <telerik:RadAjaxLoadingPanel ID="loading_tabs" runat="server" IsSticky="true" MinDisplayTime="2000" InitialDelayTime="250">
     Loading ...

    When RadAjaxLoadingPanel's property "IsSticky" is set to true, MinDisplayTime doesn't make a difference. LoadingPanel disappears as soon as request is complete.

    Please Advice
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Jul 2011 Link to this post

    Hello Valera,

    I tried the following scenario and it worked on my end.Hope this helps.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <telerik:AjaxSetting AjaxControlID="Button1">
                      <telerik:AjaxUpdatedControl ControlID="Button1" LoadingPanelID="loading_tabs" />
    <telerik:RadAjaxLoadingPanel ID="loading_tabs" runat="server" Width="256px" Height="64px"
    IsSticky="true" MinDisplayTime="200" InitialDelayTime="250" Skin="Vista">
                <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />

  3. DevCraft R3 2016 release webinar banner
  4. Valera
    Valera avatar
    7 posts
    Member since:
    Aug 2009

    Posted 29 Jul 2011 Link to this post

    I have a little bit different setup, I use RadAjaxPanel instead of ajaxifying controls via RadAjaxManager.

    Here is sample that demonstrates this bug (toggle between IsSticky true/false) to see the difference:

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="loading_tabs">
            <telerik:RadAjaxLoadingPanel ID="loading_tabs" runat="server" IsSticky="true" MinDisplayTime="3000">
                Loading ...
                <br />
            <asp:Label ID="lbl_msg" runat="server" Text="Label"></asp:Label>
            <asp:Button ID="Button1" runat="server" Text="ShowDate" OnClick="btnClick" />

    protected void btnClick(object sender, EventArgs e)
                lbl_msg.Text = DateTime.Now.ToString();
  5. Genti
    Genti avatar
    107 posts

    Posted 01 Aug 2011 Link to this post

    Hi Valera,

    In this case you should move the definition of the RadAjaxLoading panel outside the AjaxPanel.

    The reason that you don't see loading panel any more even though that you have specified a minimum time is the following:
    -When you click the button you initiate and ajax postback to the server.
    -The server hangs for a second and then brings a response.
    -When the response comes the RadAjaxPanel recreates all the controls inside it and eventually your going to lose the loading panel(this is the case If you set IsSticky to true, the panel will appear where you have set it in the WebForm)

    Otherwise, if you have not set IsSticky to true, the loading panel is not rendered in the place where you define it, but rather outside the container. This way, on each response it wont get re-rendered.


    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.

  6. Bijoy Mohanta
    Bijoy Mohanta avatar
    6 posts
    Member since:
    Dec 2014

    Posted 13 Mar Link to this post

    Hi Experts,

    This is the solution of this issues. Please try it

    ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">

  7. Bijoy Mohanta
    Bijoy Mohanta avatar
    6 posts
    Member since:
    Dec 2014

    Posted 13 Mar in reply to Bijoy Mohanta Link to this post

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">
Back to Top
DevCraft R3 2016 release webinar banner