Label binding not working on SFChart LineSeries (Android Platform)

On the SFChart I have a use case to display two Labels on the LineSeries dynamically from a model binding. However, when the updates are made to the label values only one of the properties is updated the other retains the default value from when the view was initialized, but when I set a break point and hover over the property, the value has been updated. I have also checked to ensure that PropertyChanged event is been invoked in both cases.

(This happens on Android, but works as expected on UWP i.e. both labels are updated).

Code sample





In this case the SelectedSecondaryEmployee is updated but the SelectedPrimaryEmployee is not updated and always displays "EMPTY" after the index is updated to 1 and the OnPropertyChanged methood is invoked.

I have tried:

1) Calling the OnPropertyChanged(nameof(SelectedPrimaryEmployee)) at different points in the execution flow.

2) Changing the order of the calls in the last image to call the OnPropertyChanged(nameof(SelectedPrimaryEmployee)) first.

3) I have added the ListenPropertyChange="True" property although it is not required on UWP.


This is the Android emulator I use


Thanks for your assistance


1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team September 22, 2022 02:49 PM UTC

Hi Chibuikem Akpaka,


We have checked the reported problem in android and the binding series Label property were updated properly for the dynamic changes at our end. Please find the tested sample based on the provided details and video in the below attachment for reference.


We would like to suggest ensuring binding property notifies the property changed properly and add both get set for the property while using binding.


Could you please revert us by modifying the sample with issue reproduced state and replication steps which will be helpful to provide you better solution at the earliest.


Regards,

Devakumar D


Attachment: SF_177663_f3644606.zip

Loader.
Up arrow icon