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

User's ajax interaction skips the ajaxmanager queue

3 Answers 41 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Daniel Sim
Top achievements
Rank 1
Daniel Sim asked on 26 Nov 2009, 12:06 PM
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

3 Answers, 1 is accepted

Sort by
0
Daniel Sim
Top achievements
Rank 1
answered on 26 Nov 2009, 10:35 PM
anyone?
0
Sebastian
Telerik team
answered on 01 Dec 2009, 01:18 PM
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.
0
Daniel Sim
Top achievements
Rank 1
answered on 01 Dec 2009, 01:20 PM
Okay. I'm going to write some custom JS to achieve the same.
Tags
Ajax
Asked by
Daniel Sim
Top achievements
Rank 1
Answers by
Daniel Sim
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or