Rebuild datasource

I have a getAppointments function that returns a list of appointments to dataSource. In onViewChanged I'm calling getAppointments again but the appointments do not get added to the screen. Do I need to rebuild the datasource? If so, how would I do that?


3 Replies

IR Indumathi Ravichandran Syncfusion Team July 15, 2021 06:27 AM UTC

Hi Joris, 
 
Thank you for contacting Syncfusion support. 
 
Regarding Query: Do I need to rebuild the datasource? If so, how would I do that? 
 
For updating the dynamic changes of appointment in the calendar UI, kindly use the notifyListeners. We have a KB document for adding appointment dynamically. Please find the KB from the following link. 
 
KB link: 
 
Also please find the pub documentation link for notifyListeners. 
 
Also, Flutter calendar supports loadMoreWidgetBuilder. It displays the appointments whenever view changed in the calendar. Please find the UG document from the following link. 
 
UG link: 
 
Please find the KB document for loadMoreWidgetBuilder from the following link. 
 
 
We hope that this helps you. Please let us know if you need further assistance. 
 
Regards, 
Indumathi R 



JO Joris replied to Indumathi Ravichandran July 18, 2021 01:53 PM UTC

Dear Indumathi R,

Thank you for your help but unfortunately I can't get it to work. Are you able to open a private conversation so I can send you the code?



IR Indumathi Ravichandran Syncfusion Team July 19, 2021 06:40 AM UTC

Hi Joris, 
 
Thank you for the update. 
 
Regarding Query: Unfortunately I can't get it to work. Are you able to open a private conversation so I can send you the code? 
 
We have created a new support incident under your direct trac account for “Appointments doesn’t updated in the calendar UI while view changed”. Please follow the created incident for further updates. 
 
Regards, 
Indumathi R 


Loader.
Up arrow icon