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

Busy indicator Text shows up if another OOB window is open

4 Answers 52 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 17 Mar 2012, 12:18 AM
This might be hard to debug since it's only happening about 40-50% of the time.
I basically have a rad busy indicator inside a grid.
<telerik:RadBusyIndicator Grid.Row="1" Grid.Column="0" Name="busyIndicatorHP"
        BusyContent="Loading Tasks....">
I'm basically calling a wcf service and putting data into a listbox.  When I call the service I set the busy indicator and when I populate the listbox, I set it to isbusy=false.  It works, unless I have a  silverlight 5 OOB detachable Window open which I open with my app (This is an OOB app).  For example it's a help window for the application, nothing to do with that current page.

Half the time it works, but half the time I'll get the text part of the busy indicator "Loading Tasks...."  The spinning orb isn't there, just the text area and that part of the grid is shaded out like it's still busy.

When I'm debugging it, that text area only shows up after all the lines of my code are finished.  So, it seems like it's out of my control when it shows up.


4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 23 Mar 2012, 09:01 AM
Hi,

This might be caused because this operation uses the UIThread and it could freeze the layout for some time. The RadBusyIndicator is a UIElement and it runs in the UIThread as well, and if it is frozen, the control will freeze as well. What I could suggest is using DataTemplates in the UI and generating the data in a BackgroundWorker. We have such an example with RadBusyIndicator - http://demos.telerik.com/silverlight/#BusyIndicator/FirstLook
Also, I would suggest you to bind to the IsBusy property of the GridView instead. In that way only when the GridView is actually busy and need time to visualize the changes, the BusyIndicator will appear and no issues with the threading will be possible.

Hope this helps.

Kind regards,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
danparker276
Top achievements
Rank 2
answered on 26 Mar 2012, 10:57 PM
Are you saying I can't use a rad busy indicator if I'm using the new Silverlight 5 OOB Windows?

I use the busy indicator because I don't want people inputing values into controls before the data is loaded.  The busy indicator makes all my controls disabled.  I don't want to used the grid busy indicator because I want everything disabled.

When it's failing, all the data is loaded and displayed, but the 'Loading data...' still shows.  The Yellow spinning orb from the Office Blue theme is gone though.  So only half of the load data dialog is left.

On another one of my programs, if I open a silverlight oob window (window 1)  from my  oob application and then try to open a rad window from my application (with window 1 still open), the data loads but half of the busy dialog stays.

I'm calling IsBusy=false.  It gets to that part of the code, but it only removes half of the busy dialog.  I can probably come up with a sample if you need it.
0
danparker276
Top achievements
Rank 2
answered on 28 Mar 2012, 10:07 PM
I've tried to re-produce this on a smaller sample program, but I can't.

When I step through my large program, the isBusy is set to false and when I continue. It shows only the BusyContent part, not the orb.  And this only happens if a OOB System.Windows.Window is open from the application.


I did fix this by setting
 busyIndicatorHP.DisplayAfter = TimeSpan.Zero;

It seems that this will only happen if the busy indicator is not displayed.  This will work for me, but there is a problem with the busy indicator.
0
Konstantina
Telerik team
answered on 29 Mar 2012, 11:22 AM
Hi Dan,

We are glad that you have found a solution for your problem. However, if you do succeed in reproducing the issue in a sample project, we will gladly look for the problem further.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
BusyIndicator
Asked by
danparker276
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
danparker276
Top achievements
Rank 2
Share this question
or