Busy indicator Text shows up if another OOB window is open

5 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 16 Mar 2012 Link to this post

    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.


  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 23 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 26 Mar 2012 Link to this post

    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.
  5. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 28 Mar 2012 Link to this post

    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.
  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 29 Mar 2012 Link to this post

    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 >>
Back to Top
DevCraft banner