<
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
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
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();
}
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,
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.
Hi Experts,
This is the solution of this issues. Please try it
<telerik:RadScriptManager
ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">
</telerik:RadScriptManager>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
AsyncPostBackTimeout
=
"1200"
>
</
telerik:RadScriptManager
>