I am facing a problem regarding RadAjaxLoadingPanel.
I am saving records to one table in sql server database. First few seconds, RadAjaxLoadingPanel works fine but after 90 seconds(Approx) it goes off and does not show any progress while data in saving in table.
Can you tell whether is there any way to make it visible all the times till the query finishes. My query takes around 5 minutes to complete.
I tried Explicit Hide/Show way also but still i am getting same result.
Please advise.
6 Answers, 1 is accepted
You can use the MinDisplayTime property of the RadAjaxLoadingPanel to change the default time for showing the loading indicator.
Regards,
Maria Ilieva
Telerik
Hi Maria,
Thank you for your response.
I tried setting MinDisplayTime property of the RadAjaxLoadingPanel but this is not the solution in my case.
For eg. I set MinDisplayTime for 3 minutes but my query took 4 minutes to execute so RadAjaxLoadingPanel goes off after 3 minutes but process is still running and i can not estimate time required to execute query as each time it will be diifferent depending upon the data in the table.
Do we have any property so that it will show RadAjaxLoadingPanel until process is going on no matters how much time process is taking.
Thanks & Regards,
Sumit
Note that the LoadingPanel appears on the client and it is not possible to set such a functionality to monitor server process and then hide the panel. Possible approach ion this case is to manually show it using the OnReqestStart client method and to hide it in a client that is registered on the server after the process finishes.
I hope this works for your case.
Regards,
Maria Ilieva
Telerikfunction
Hi Maria,
Thank you for the reply.
As suggested, I used OnRequestStart And OnRequestEnd method. Its showing after OnRequestStart but still its going away after 2 minutes.
Apologies for bothering you again and again.
Can you please send me any working demo page regarding the same where OnRequestStart loading appears and only after OnRequestEnd it disappears, no matters how long time process takes.
Thanks & Regards,
Sumit
The LoadingPanel will not hide itself after any time. What is happening in your page is that the request timeouts, and this triggers hiding the panel.
You can change the default timeout of 90 seconds using the AsyncPostBackTimeOut property of the ScriptManager in your page.
Regards,
Vasil
Telerik
Hi Vasil,
Thank you so much for the solution.
Thanks & Regards,
Sumit