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

AppointmentSource doesn't seem to be updating

I've bound an ObservableCollection on the ViewModel to the AppointmentSource of a SfScheduler.

Whenever I open a page, I want to fetch this collection from a database and update the ViewModel property. When this is done from the constructor (when the page is initially created) it works fine. But since this page is in the TabBar, MAUI does not create a new page (and call the constructor).


I've tried to attach a behavior to the ContentPage to fetch and update the property on the ViewModel from the database. While the fetching works, the UI does not seem to be updating whenever I update the property.


Can anyone assist me with this?


1 Reply

SS SaiGanesh Sakthivel Syncfusion Team December 19, 2022 01:34 PM UTC

Hi Wouter,


#Regarding AppointmentSource is not updating in SfScheduler

We could not replicate the reported scenario from our end. We have prepared the sample as per the information and checked the sample from our side. Please refer to the tested sample in the following locations.


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


Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,


  • Modify our sample to reproduce the issue.


It will be helpful for us to check on it and provide you with the solution as soon as possible.


Regards,
SaiGanesh Sakthivel


Loader.
Up arrow icon