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

RadBusyIndicator while loading window

1 Answer 342 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 19 Jun 2013, 09:33 AM
Hi.
I've added RadBusyIndicator to my window, so it's looks like :
    <telerik:RadBusyIndicator Name="rbi" IsBusy="True" IsIndeterminate="False">
    <Grid>
        
        <Grid.RowDefinitions>

(......)

//all grids/wrappanels/buttons/radgridviews goes here

    </Grid>
    </telerik:RadBusyIndicator>
</Window>

And in window i've added method .Loaded, so it changes busyIndicator isBusy value to false.
Problem is that, when im pressed button to open this window all i can see is white screen (without anything), that tooks couple seconds, and then just viewing all controls in window.
How can i force busyIndicator to work while window isn't loaded?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 24 Jun 2013, 08:15 AM
Hi,

It seems that you are trying to show the RadBusyIndicator control while the UI is rendering which is causing this behavior. The BusyIndicator as all UI controls is rendered in the UI thread and if that thread is frozen it will not show.

I would recommend you to set the IsBusy not in the Loaded event of the Window as this event would be called after all of the controls are rendered (during which time the UI thread is frozen) but for example while the data from the controls is being fetched (possibly with the use of BackgroundWorker). Hope this is helpful.

Regards,
Vladi
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
BusyIndicator
Asked by
Paweł
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or