BusyIndicator only works the first time.

2 posts, 0 answers
  1. Ramiro
    Ramiro  avatar
    3 posts
    Member since:
    Jul 2011

    Posted 23 May 2014 Link to this post

    Hi, I have this MVVM app and I need to show a BusyIndicator when it does this heavy load method.

    It works fine the first time, when I try to run it again, looks like it's not starting the BusyIndicator. And it just does nothing.

    Here's the code I'm using to show the BusyIndicador

    The BusyIndicator it's binding to this property

    private bool _isBusy;
    public bool IsBusy
        get { return _isBusy; }
            if (_isBusy == value) return;
            _isBusy = value;

    And here's how I change the state of the binded property

    var backgroundWorker = new BackgroundWorker();
    backgroundWorker.DoWork += delegate
        IsBusy = true;
    backgroundWorker.RunWorkerCompleted += delegate
        IsBusy = false;

    I also tried setting the IsBusy property outside of the DoWork method, but got the same results.

    Any idea what it might be the issue?

  2. Vladi
    Vladi avatar
    743 posts

    Posted 26 May 2014 Link to this post

    Hello Ramiro,

    Thank you for contacting us.

    We are not aware of a issue in the current version of RadBusyIndicator that could be causing such behavior of the control. The BusyIndicator control is an UI control and as any UI control it is rendered in the UI thread. If that thread is frozen the RadBusyIndicator will not be shown. It looks like you are aware of this because one way to make sure that the UI is not frozen is to use an BackgroundWorker and toggle the IsBusy property of the control in its events.

    We tried to reproduce the issue on our side but to no avail. When using a BackgroundWorker in order to toggle the IsBusy property of the control no unexpected behavior was observed. Could you try to reproduce the issue in the attached test project and send it back to us in a new support thread in order for us to be able to observe the described behavior on our side?

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top