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

BusyIndicatorContent is visible, indicator is hide, but IsBusy is false

2 Answers 102 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 30 Mar 2012, 11:15 AM
Hello!

We have a problem.
Sometimes our busy indicator show busycontent (Loading...), doesn't show indicator and IsBusy = true.

The scenario is following:
1) BusyIndicator.DisplayAfter = 1 second
2) We call some server method and set IsBusy = true.
3) Then, after we get answer from server we do some things with answer and call Dispatcher.BeginInvoke(() => BusyIndicator.IsBusy = false);
After this we see that busy indiactor show busycontent (Loading...), doesn't show indicator.

We try to find the answer in you source code and suggest following thing:

When time for displaying indicator is invoke callback - you set IsContentVisible = true and IsBusyIndicationVisible = true;

So if time for the timer is left, timer append invokation callback. If at this moment we work with server anwer (on point 3 in the list) - BusyIndicator.IsBusy = false can be called before timer callback is invoked but after it added to the dispatcher.

Do we think right or may be there are any additional thouths about why we see busyindicator content (but it's wrang because IsBusy = false) and don't see indicator?

Thanks, Anatoly.

2 Answers, 1 is accepted

Sort by
0
Anatoly Chekh
Top achievements
Rank 1
answered on 30 Mar 2012, 02:06 PM
If we set DisplayAfter = 0 - it never happens (I try about 100 times).
0
Ivo
Telerik team
answered on 03 Apr 2012, 09:00 AM
Hi,

We successfully reproduced this at our side and we can confirm it is a bug at our side. It happens if the time for the service call is almost the same as the DisplayAfter time. I have logged it into our PITS so you can track its status here. We will try to fix this for the next official release.

Greetings, Ivo
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
Anatoly Chekh
Top achievements
Rank 1
Answers by
Anatoly Chekh
Top achievements
Rank 1
Ivo
Telerik team
Share this question
or