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

RadAjaxManager with multiple web user control.

1 Answer 115 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
chofra03
Top achievements
Rank 1
chofra03 asked on 20 Apr 2010, 04:44 AM

Hello,

I have a page with two web user control and one asp:button to trigger the ajax request. Both web user control only include a asp:button. The only difference between the two web user control is on the page_load function. One have a System.Threading.Thread.Sleep(1000) and the other one a System.Threading.Thread.Sleep(8000).  With the RadAjaxManager, while launching the ajax request with my trigger button, what I was expecting was that the first of the web user control finished is request before the second one. (The RadAjaxLoading panel on the first web user control dissapear before the second one), Therefore, the behavior was that the first web user control won't be available until the second one has finished is request. Both RadAjaxLoadingPanel of each web user control will disapear at the same time. What I would expect is that the first web user control became available as soon as it finished to load himself.

So I try to put each web user control in is own RadAjaxPanel. If I use their respective button to update is own content. While pressing the button of the first web user control, is ajax request is launch and I can see the RadAjaxLoadingPanel progress. Therefore, during is progress, if i tried to launch the second one, nothing happend. It will wait until the first one have finished. What I would expect is that the second update is launch as soon as I press his trigger button, even if there is already a ajax update in progress. I do not have to wait after the previous request is done to be able to launch the second one.

So what I would like to know is how to use your Ajax Controls so I can have multiple web user control that can be updated independently each to the other..


Thanks,

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Apr 2010, 01:11 PM
Hi,

Please note that 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. So in your case the first UC could not be available till the second Ajax Request finishes.


Greetings,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
chofra03
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or