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

Example of asynchronous loading grid data

3 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 13 Jan 2014, 01:24 PM
Hello
I was looking through these forums, demos and google for any example of proper usage entity framework (for .NET 4 and .NET 4.5) with async data loading.

Lets look into requirements:
1. Database with 1 mln record (just to mention large amount of data)
2. EntityFramework (ObjectContext), with entity name "Product"
2. GridView on window.
3. DataPager assigned to GridView (100 per page)
4. BusyIndicator on window.

Requirement:
1. On window open - start asynchronous (to make UI responsible)  data loading with assigning IsBusy of BusyIndicator to true.
2. Once data loaded set IsBusy to false.
3. On page change, sort, filter - assign IsBusy to true when stared, and to false when ended.

So idea is quite simple for responsive UI. However I couldn't any example of such scenario.
The EnityFrameworkDataSource is totally synchronous and does not contain way to assign IsBusy and if there is delay UI stops responding.

Regards
Marcin

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Jan 2014, 12:21 PM
Hello Marcin,

What I can suggest you to check the WPF Demos with RadEntityFramework DataSource. Our control still does not have such asynchronous support though.
I have passes the question to the development team for a further investigation.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marcin
Top achievements
Rank 1
Veteran
answered on 16 Jan 2014, 12:43 PM
Hello
Yes, I already looked there, and found nothing useful that would allow me user Grid out of box with server filtering and paging and sorting, without too much coding.

I know I can use pager in detached mode which would give me a way to simulate async with background worker. But what with sorting and filtering. How can get get current filters and sorts and apply them to my IQueryable?

Kind Regards
Marcin
0
Yoan
Telerik team
answered on 21 Jan 2014, 05:35 PM
Hello Marcin,

As you already know the EnityFrameworkDataSource does not support asynchronous mode. However, we will consider implementing this functionality in one of our upcoming releases.

Thank you for the feedback and let us know if you have other questions.


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Dimitrina
Telerik team
Marcin
Top achievements
Rank 1
Veteran
Yoan
Telerik team
Share this question
or