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

Request gets blocked

1 Answer 32 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
KJ
Top achievements
Rank 1
KJ asked on 29 Sep 2008, 04:15 PM
Hello,
on my page, I use the RadAjaxMaanger to check a server side method in a certain interval. The problem is, that this blocks the usage of my radTreeView.

An example: the ajaymanager starts the request. While this request is worked on server side the user moves a treenode to another parent. The node_drop-event is not called immediately, because the other request is not completed yet. After the first request is done the drop is executed.

If I use the fiddler http debugger, a request is set immediately after dropping the node, while the first one waits for response.
Also: I get a ClientEvent "OnResponseEnd" called, with the get_eventArgument-value used by the first request several times - more often than the onrequeststart!

Is there a way to get two or more simultaneous requests from one clients?

Regards

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 02 Oct 2008, 10:59 AM
Hi KJ,

I'm afraid that you cannot do updates on the client until the AJAX response ends. All the controls are updated as soon as the update is completed. However you could suggest canceling the Ajax request if you need to proceed with another one. For more information on this matter you could review the following help topic.
Another option could be to use AjaxRequestQueueing. As you know 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. More information on this matter could be found in this help topic

Sincerely yours,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
KJ
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or