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

RadAjaxManager request queue order

1 Answer 163 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 13 Nov 2008, 08:58 PM
Good day.

I am using a RadAjaxManager with the RequestQueueSize set to 5. It is Ajaxifying two RadGrids one which is being used to select records, and the other to show an ordered list of the selected items. 

The problem arises if 3-4 items are selected in quick succession the Request queue does not maintain the order of the selected items. I was wondering if there was any way to have the request queue maintain the order in which that the requests occurred.

Thank you very much for your help.

1 Answer, 1 is accepted

Sort by
0
Kevin Babcock
Top achievements
Rank 1
answered on 16 Nov 2008, 06:49 AM
Hi Daniel,

The RadAjaxManager uses the Array.enqueue() and Array.dequeue() functions to add and remove items to and from the request queue, so the order is maintained. If you have a subscription license and want to take a look at the code for yourself, open the RadAjaxControl.js JavaScript file and check out lines 519 and 524 (these line numbers were taken from the Q3 2008 version of the RadControls for ASP.NET AJAX - they may be different in other versions).

If you are experiencing cases whereby a request is either processed on the server or returned to the client out of order, remember that when the requests are transferred over the intranet/internet they do not always take the same route and are not guaranteed to arrive in the order in which they were transferred. It is usually the case that messages (or in this case, requests) sent across a network will not arrive in the order in which they were sent due to network latency, routing, and other issues.

I hope this helped clear up your concern. If you'd like me to elaborate further or answer any additional questions you may have, please let me know.

Regards,
Kevin Babcock
Tags
Ajax
Asked by
Daniel
Top achievements
Rank 1
Answers by
Kevin Babcock
Top achievements
Rank 1
Share this question
or