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

Set IsBusy while grouping

3 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 25 Aug 2014, 08:42 PM
Hi,

My rad gridview becomes unresponsible for a couple of seconds while grouping certain amount of data. All I want to do is to show some kind of loading indicator for this period of time. I tried to leverage OnGrouping, OnGrouped events to set IsBusy but it does not work:

OnGrouping(){  gridView.IsBusy = true;}
OnGrouped(){  gridView.IsBusy = false;}


It looks like GridView performs all grouping in UI thread without any chance for 'IsBusy = true' being proceed before grouping finishes. 

Is this any recommended way to achieve this? I can't believe nobody meets this issue but forum search was unsuccessful :(  

Thanks in advance



3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 26 Aug 2014, 12:01 PM
Hello,

Both the BusyIndicator and the GroupingGrouped events use the same UI thread, which results in blocking the UI rather than showing the busy indicator while the grouping is applied.

If you wish to display an indicator while loading the data from the server, then you can configure the IsBusy property of the GridView appropriately. Basically you should bind this property, so that the indicator is shown while the data has been loading. You can check the DataServiceDataSource WPF Demos as an example.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Roman
Top achievements
Rank 1
answered on 27 Aug 2014, 11:38 AM
Ok, I see that if i bind DataServiceDataSource.IsBusy with grid.IsBusy it should work. But as far as I understand this DataServiceDataSource is intended for client-side purposes, for example to consume WCF services. How can i configure this data source to use my Entity Framework db context directly? Could you provide an example?
0
Dimitrina
Telerik team
answered on 28 Aug 2014, 10:27 AM
Hello,

You can check our  WPF Demos on the EntityFrameworkDataSource. Still, the load of the EntityFrameworkDataSource is synchronous and it does not have an IsBusy property. 


Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Roman
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Roman
Top achievements
Rank 1
Share this question
or