SfBusyIndicator not Responding to (TwoWay) binded changes

Servus!

My SfBusyIndicator Control is not responding to changes in the binded Property (TwoWay Binding).

It is a boolean binded to the IsBusy Property. If i change it from false to true, nothing happens. I am currently using version 19.2.0.48.

<Notification:SfBusyIndicator Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="4"

                                      ViewboxWidth="200" ViewboxHeight="200"

                                      VerticalAlignment="Center" HorizontalAlignment="Center"

                                      IsBusy="{Binding IsBusy, Mode=TwoWay}" />


Can anyone help me?


6 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team July 22, 2021 08:05 AM UTC

Hi Kevin,

Greetings from Syncfusion.

We have analyzed your query. We have prepared a sample using SfBusyIndicator. In this example, we used IsBusy in TwoWay binding, but we were unable to reproduce the same. Sample we tried that can be download from below.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BusyIndicator_Sample1550179127

Since we are not aware of your exact application scenario, so we request you to check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. It will help us to provide better solution at the earliest.

Regards,
Suganya Sethuraman.
 



KS Kevin S July 22, 2021 04:22 PM UTC

Dear Suganya,

i had a look in your Sample and there are several things, i really don't understand, why you have done this:

  1. Why are you binding to a boolean ("Busy") and don't use it to control the "IsBusy" Property of the control?
  2. Why are you using the Button_Click Event to turn the Control on/off, instead of using MVVM?
Here is your code in the example giving above:

private void Button_Click(object sender, RoutedEventArgs e)

{
BusyBee.IsBusy = !BusyBee.IsBusy;
}


This has nothing to do with my Problem or even with MVVM :D

(Interestingly, nevertheless you are trying to bind to a boolean, but never use it.)

My Problem was: Why is the Control not responding to changes in the binded boolean? My Boolean is binded TwoWay (as seen above). Please have a deepler look at my question above.


SS Suganya Sethuraman Syncfusion Team July 23, 2021 09:00 AM UTC

Hi Kevin,

Sorry for the inconvenience.

We have prepared sample using SfBusyIndicator, and the IsBusy(ViewModel) property is bound to SfBusyIndicator's IsBusy API. However, we were unable to replicate the issue. We suspect that the issue is caused by the fact that INotifyPropertyChanged is not implemented in ViewModel.

Please have a sample and video for your reference,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BusyIndicatorBusy758435431

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/IsBusyVideo1535362867

Since we are not aware of your exact application scenario, Please provide the following details

1. In your application, where do you change the IsBusy property? (or)

2. Modifying the sample based on your application along with replication procedure or provide the sample. It will help us to provide better solution at the earliest.

Regards,
Suganya Sethuraman.
 



KS Kevin S July 23, 2021 02:31 PM UTC

unfortunately i can't see any difference.

Here is my bool parameter with calling RaisePropertyChanged("IsBusy");.


public bool IsBusy{get { return _isBusy; }set{isBusy = value;RaisePropertyChanged("IsBusy"); }}

You have called NotifyPropertyChanged(); in your code. I tried to change my Version with NotifyPropertyChanged(); and implemented the Method in ModelBase. But both Versions (RaisePropertyChanged/NotifyPropertyChanged) don't have any effect. 


Setting IsBusy to "true" has no Effect for showing the control. I really don't know, what the problem could be. 



KS Kevin S July 24, 2021 03:48 PM UTC

Hello There again,

today i solved the problem, finally!

It had nothing to do with bindings, but with Threading and UI Blocking Threads.

Now i used the Dispatcher for handling some of the Code, now it works.

Unfortunately, now i have other Problems regarding the SfBusyIndicator. For that, i will open a new Forum-Thread. Thank you :)


Marked as answer

SS Suganya Sethuraman Syncfusion Team July 26, 2021 06:09 AM UTC

Hi Kevin,

Thanks for the update.

We glad that the issue has been resolved and please get back to us if you need any other assistance.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon