We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

mvvm binding not working

Good evening.

Currently I´m using the
<chart:SfColumnSparkline/>
and want to display data via mvvm binding. When setting data to the binded collection before the view gets loaded the chart displays the data correctly.
When changing the data afterwards though the changes aren't displayed.

Inside my .xaml I use it like:
<chart:SfColumnSparkline
                        ItemsSource="{Binding barChart}"
                        YBindingPath="Result"
                         .../>

barChart is an ObservableCollection<model>barChart{get; set}
Result is a double inside my model.
I define the BindingContext inside the xaml since I'm using it with other views, too, including a SfDataGrid, which works without issues.
I also tried binding a System.Collection.List and writing own getter and setter, where the setter calls the OnPropertyChanged("propertyName") function, without any success.

Has some else experienced this issue and found a solution?

Kind regards.

1 Reply

PS Parthiban Sundaram Syncfusion Team December 9, 2016 04:01 PM UTC

Hi Fleix Bottcher,

Thank you for contacting Syncfusion support.

We have created an incident under your Direct Trac account. So, we request to follow the incident for further details.

Our Direct Trac support system can be accessed from the following link:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Parthiban S

Loader.
Live Chat Icon For mobile
Up arrow icon