RadAjaxManager request queue order

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    2 posts
    Member since:
    Nov 2008

    Posted 13 Nov 2008 Link to this post

    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.
  2. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 16 Nov 2008 Link to this post

    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.

    Kevin Babcock
  3. DevCraft R3 2016 release webinar banner
Back to Top