CPU

2 posts, 0 answers
  1. Andreas Decke
    Andreas Decke avatar
    25 posts
    Member since:
    Oct 2007

    Posted 23 Dec 2010 Link to this post

    Hi,
    I'm building a SL RIA Application (simple DomainDataSource). But the BusyIndicator use the CPU to 70-80%. Here is my code ...
    private void sDLmedia_LocationsDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
    {
      biLocations.IsBusy = false;
      if (e.HasError)
      {
        System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
        e.MarkErrorAsHandled();
      }
    }
     
    private void LocationsDomainDataSource_LoadingData(object sender, LoadingDataEventArgs e)
    {
      if (!biLocations.IsBusy)
      {
        biLocations.IsBusy = true;
      }
    }

    without th BusyIndicator is the CPU-usage normal?!
    regards Andreas
  2. George
    Admin
    George avatar
    1332 posts

    Posted 29 Dec 2010 Link to this post

    Hello Richard,

    I would suggest you to set IsBusy to true when you start loading the data, not in the LoadingData event handler. 
    You could refer to the following forum thread - http://www.telerik.com/community/forums/silverlight/busy-indicator/how-to-add-busyindicator-to-tileview.aspx

    I hope this helps.

    Regards,
    George
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
Back to Top