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.
Unfortunately, activation email could not send to your email. Please try again.

mvvm binding not working

Thread ID:

Created:

Updated:

Platform:

Replies:

127785 Dec 8,2016 11:52 AM Dec 9,2016 11:01 AM Xamarin.Forms 1
loading
Tags: Sparkline
Felix Böttcher
Asked On December 8, 2016 11:52 AM

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.

Parthiban Sundaram [Syncfusion]
Replied On December 9, 2016 11:01 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;