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

DefereRefresh

1 Answer 67 Views
EntityFrameworkDataSource
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 28 Mar 2013, 10:41 AM

Hello,

 

I have a View whith a GridView bound to RadDataFilter bound to an QueryableEntityCollectionView<T> exposed in a View-Model.

I have few questions :

Does when the user add filter to the RadDataFilter the data is filtered directly in SQL ?
How to implement assync data loading ? I have the folowing exception when using the DeferRefresh method :

Cannot change or check the contents or Current position of the QueryableCollectionView whileRefresh is being deferred.

Thank you,

Benjamin

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Mar 2013, 10:58 AM
Hi,

When the user filters the data is filtered directly in SQL Server. This is because we use LINQ for filtering and Entity Framework is based on LINQ.

I am afraid that there is no way to force an async data loading with the QECV. When its Filter-, Sort- or GroupDescriptors change in some way, it will automatically go to the server to fetch the new data synchronously. 

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
EntityFrameworkDataSource
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or