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?
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.
Dear Suganya,
i had a look in your Sample and there are several things, i really don't understand, why you have done this:
- Why are you binding to a boolean ("Busy") and don't use it to control the "IsBusy" Property of the control?
- Why are you using the Button_Click Event to turn the Control on/off, instead of using MVVM?
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.)
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.
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.
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 :)
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.
- 6 Replies
- 2 Participants
- Marked answer
-
KS Kevin S
- Jul 21, 2021 06:02 PM UTC
- Jul 26, 2021 06:09 AM UTC