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

ToDataSourceResultAsync extension methods should support cancellation token

4 Answers 261 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 21 Nov 2017, 01:09 PM

I've recently started using ToDataSourceResultAsync extension methods, but noticed it is not allowed to pass cancellation token.

Cancellation token is widely supported in entity framework. And it has big benefits for long running queries to allow cancel them.

ToDataSourceResultAsync methods should support passing cancellation token as a parameter.

 

4 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 23 Nov 2017, 09:40 AM
Hi Marcin,

This sounds like a good feature for the ToDataSourceResultAsync method. You could create a feature request in our public portal for it, where other developers could vote for it and increase its priority:

Best Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Marcin
Top achievements
Rank 1
Veteran
answered on 23 Nov 2017, 09:56 AM

created:

User Vote
0
Inayat Walli
Top achievements
Rank 1
answered on 16 Oct 2020, 03:55 PM

Hello from 2020, this feature still not developed.

Please note that developers can not achive all benefits of ToDataSourceResultAsync method.

For example there is default grid with filters, user changes filters one by one and each time request goes to server. XHR request can be canceled on client side but query to database will still be executing for all previos requests. I voted for this feature last year but still nothing...Seems that ToDataSourceResultAsync method is not usable for IQueryable and IQueryable<T>.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 16 Oct 2020, 04:02 PM

Hello, I’m asking about this here as well:

https://feedback.telerik.com/aspnet-core-ui/1486526-the-datasourceresult-support-for-cancellation-token

Tags
General Discussions
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Konstantin Dikov
Telerik team
Marcin
Top achievements
Rank 1
Veteran
Inayat Walli
Top achievements
Rank 1
Share this question
or