User's ajax interaction skips the ajaxmanager queue

4 posts, 0 answers
  1. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 26 Nov 2009 Link to this post

    Hi,

    I have two long-loading asp:panels on a page with lots of ajax controls interactions.

    When the page load completes I add two ajax requests to the ajaxmanager queue so the user can interact with the page without being held up.

    What I want to do is if the user interacts, make their ajax request 'jump the queue' and get processed before the two long-loading ajax requests are complete. Once the user's request is complete, continue with the queue.

    Is this possible? I see ClientEvents-OnRequestStart can eventArgs.set_cancel(true), but this will also cancel the user's request so it won't work.

    I have lots of controls on this page within grids, treeview, buttons, links, so it isn't practical to have all of these change to call a javascript function that eventArgs.set_cancel(true) and then raises an onclick() or similar.

    Do you have a solution?

    Thanks, Dan
  2. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 26 Nov 2009 Link to this post

    anyone?
  3. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 01 Dec 2009 Link to this post

    Hello Daniel,

    Unfortunately the behavior you request is not achievable. You will need to wait for the two ajax requests to be completed before executing custom logic related to the user interaction with the page. If you want the user input to take precedence, you will need to abort the ajax requests.

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 01 Dec 2009 Link to this post

    Okay. I'm going to write some custom JS to achieve the same.
Back to Top