Set IsBusy while grouping

4 posts, 0 answers
  1. Roman
    Roman avatar
    2 posts
    Member since:
    Aug 2014

    Posted 25 Aug 2014 Link to this post

    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



  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Aug 2014 Link to this post

    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.
     
  3. Roman
    Roman avatar
    2 posts
    Member since:
    Aug 2014

    Posted 27 Aug 2014 in reply to Dimitrina Link to this post

    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?
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 28 Aug 2014 Link to this post

    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.
     
Back to Top