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

Loading panel not loading second time

4 Answers 241 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Atit Thaker
Top achievements
Rank 1
Atit Thaker asked on 29 Dec 2010, 07:50 AM
Hi,

I am using Telerik Q2 2010 release.

I have a strange problem. I have a loding panel on my page and I am using RadAJAXManager to manage the controls I need to refresh and show the loading panel.

The panel loads fine for the first time. But when I click on another button quickly, the loading panel does not show. Please note that, the click of second button has more work to do and it does not finish its job before 4-5 seconds. Still, I set InitialDelayTime="0" for the loading panel. But it did not work.

If I wait for few seconds (approx 10 seconds) between button clicks, the loading panel shows fine. Can you please let me know what I can do for this.

Let me know if you would like to see any code from my page for further investigation.

Thanks
Atit

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 31 Dec 2010, 01:51 PM
Hi Atit,

I suppose you are talking abount the client-side click handler of the second button. If this is the case, the reason for the panel not showing is that the ajax request has not started yet due to the additional work performed in the click handler. In this case, you can explicitly show the ajax loading panel using its client-side api:
http://www.telerik.com/help/aspnet-ajax/ajxshowhideloadingpanel.html

Greetings,
Tsvetoslav
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
Atit Thaker
Top achievements
Rank 1
answered on 31 Dec 2010, 01:58 PM
Hi Tsvetoslav,

The second button is not client side click. It is a regular click only (just like the first button).

Actually, If I would have clicked on second button first, it will show loading panel and the button I click on next time do not show the loading panel.

So it is not first or 2nd buttons object wise, but depends upon the sequence. The button I click after I have already clicked a button does not show loading panel. Though if I wait for 25-30 seconds and then click the button, it shows loading panel. I have already set InitialDelayTime to 0.

So it is not about client side click. What else it could be?
0
Accepted
Maria Ilieva
Telerik team
answered on 05 Jan 2011, 10:44 AM
Hello Atit,

I suppose that the problem you are facing is caused by some mishmash in the Ajax requests when the second one is initiate too fast after the first one. By design ASP.NET AJAX Framework cancels the ongoing Ajax request if you try to initiate another one prior to receiving the response from the first one. By setting the RequestQueueSize property to a value greater than zero, you are enabling the queuing mechanism of RadAjax that will allow you to complete the ongoing request and then initiate the pending requests in the control queue.
Test setting bigger Queue Size and verify if this makes any difference.


All the best,
Maria Ilieva
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
Atit Thaker
Top achievements
Rank 1
answered on 05 Jan 2011, 11:27 AM
Thanks Maria,

It seems to work fine.

Thanks
Atit    
Tags
General Discussions
Asked by
Atit Thaker
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Atit Thaker
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or