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

Abort a radAjax Request that is currently processing

1 Answer 18 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Pino
Top achievements
Rank 1
Pino asked on 26 Sep 2013, 07:49 PM
Hello,

I'm tyring with no luck to determine if there is a way to abandon a request that has already been sent to the server.  I am using a menu to load user controls with data, occasionaly one of those user controls may run a query that takes 15+ seconds, if the user clicks on another menu item (rad treeview node) a second ajax request is "queued", and executes after the first one finishes 15 seconds later.

I would like the second menu click to abort the first request and start processing.

is this possible?

thanks,

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 01 Oct 2013, 10:53 AM
Hello Stephen,

As I mentioned in the support ticket you have opened for the same issue by default the 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. See the help topic below:
http://www.telerik.com/help/aspnet-ajax/ajax-request-queuesize.html

Also I have prepared a small video which demonstrates exactly the same behavior:
http://screencast.com/t/0TJ0BUgGt

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
Pino
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or