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

CPU

1 Answer 65 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Andreas Decke
Top achievements
Rank 1
Andreas Decke asked on 23 Dec 2010, 09:28 PM
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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 29 Dec 2010, 01:53 PM
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
Tags
BusyIndicator
Asked by
Andreas Decke
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or