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?
SIGN IN To post a reply.
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.
Pub document link: https://pub.dev/documentation/syncfusion_flutter_calendar/latest/calendar/CalendarDataSourceChangeNotifier/notifyListeners.html
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
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
JO Joris
- Jul 14, 2021 07:47 PM UTC
- Jul 19, 2021 06:40 AM UTC