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

telerik RadAjaxLoadingPanel disappear after sometime

1 Answer 271 Views
AjaxLoadingPanel
This is a migrated thread and some comments may be shown as answers.
Nur
Top achievements
Rank 1
Nur asked on 25 Apr 2016, 08:04 AM

Hi,
I am using Telerik with ASP.NET.
There is some process which takes much time to complete. At the time of process RadAjaxLoadingPanel viwed successfully in my development environment.
But when I run the application from IIS then after some tile ajax loading panel disappear. At the time back end process till in progress and finally no message about the completion success or failure status.
Some code:
Master page:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="1200">
<Scripts>
<telerik:RadScriptReference Path="JS/jquery-1.11.1.min.js
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline><
telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelProcess" Enabled="true" runat="server" IsSticky="true" MinDisplayTime="300" Style="position: absolute; top: 0; left: 0; height: 100%; width: 100%">
Processing..
</telerik:RadAjaxLoadingPanel>

Content page:

<telerik:RadWindowManager ID="RadWindowManagerProcess" runat="server"</telerik:RadWindowManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelProcess1" Enabled="true" runat="server" IsSticky="true" Style="position: absolute; top: 0; left: 0; height: 100%; width: 100%;" RegisterWithScriptManager="true"> Processing...</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" LoadingPanelID="RadAjaxLoadingPanelProcess1">
</telerik:RadAjaxPanel
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function confirmCallBackFn(arg) {
    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>")
if (arg) {
$find("<%= RadAjaxPanel1.ClientID%>").ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "PanGenerate");
}
else {
   ajaxManager.ajaxRequest('Cancel');
}
}
</script>
</telerik:RadCodeBlock>

CS:

protected void btnCrud_ProcessClick(object sender, EventArgs e){
//.........
if (totalCard >
{ var msg = new StringBuilder();
msg.Append("Total " + totalCard + " records found.");
msg.Append("/br");
msg.Append(" Do you want to process " + CalculativeCard + " records ?");<br>  RadWindowManagerProcess.RadConfirm(msg.ToString(), "confirmCallBackFn", 370,170, null, "Confirmation Message")
}
}

So what can I do???
Please inform me if any more information required..
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 26 Apr 2016, 02:09 PM
Hello Nur,

The behavior you are observing may be due to a timeout.

If the process takes a long time to return the data from the server the request may timeout. If you would like to increase the timeout you can use the approach described in the following stackoverflow thread:



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
AjaxLoadingPanel
Asked by
Nur
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or