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

MinDisplayTime in RadAjaxLoadingPanel has no effect

5 Answers 266 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Valera
Top achievements
Rank 1
Valera asked on 28 Jul 2011, 09:13 PM
Toolkit version: Q2 2011

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

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

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jul 2011, 05:40 AM
Hello Valera,

I tried the following scenario and it worked on my end.Hope this helps.
aspx:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="Button1">
            <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="Button1" LoadingPanelID="loading_tabs" />
            </UpdatedControls>
       </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>
<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>
</telerik:RadAjaxLoadingPanel>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />

Thanks,
Shinu
0
Valera
Top achievements
Rank 1
answered on 29 Jul 2011, 03:53 PM
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:

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

Code:
protected void btnClick(object sender, EventArgs e)
        {
            System.Threading.Thread.Sleep(1000);
            lbl_msg.Text = DateTime.Now.ToString();
        }
0
Genti
Telerik team
answered on 01 Aug 2011, 03:23 PM
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.

Regards,

Genti
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
Bijoy Mohanta
Top achievements
Rank 1
answered on 13 Mar 2016, 09:34 AM

Hi Experts,

This is the solution of this issues. Please try it

<telerik:RadScriptManager
ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">
</telerik:RadScriptManager>

0
Bijoy Mohanta
Top achievements
Rank 1
answered on 13 Mar 2016, 09:37 AM
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">
</telerik:RadScriptManager>
Tags
Ajax
Asked by
Valera
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Valera
Top achievements
Rank 1
Genti
Telerik team
Bijoy Mohanta
Top achievements
Rank 1
Share this question
or