Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFCalendar doesn't update the view when the dataSource is changed #1839

Open
davidpanic opened this issue Apr 30, 2024 · 6 comments
Open

SFCalendar doesn't update the view when the dataSource is changed #1839

davidpanic opened this issue Apr 30, 2024 · 6 comments
Labels
calendar Calendar component follow-up scheduled Follow-up scheduled

Comments

@davidpanic
Copy link

Bug description

When the dataSource of the SFCalendar widget is changed, the view is not correctly updated until some kind of UI update is triggered e.g. by tapping on a calendar cell, swiping slightly left or right or hovering on a cell with the mouse.

Steps to reproduce

  1. Run the below example code
  2. Try swiping on the calendar
  3. Wait 2 seconds (artificial delay to simulate slow network)
  4. Observe the bug, the loaded appointments don't show up until something is updated in the UI.

Code sample

calendar_update_bug.zip

Screenshots or Video

sf_calendar_bug.mp4

Stack Traces

n/a

On which target platforms have you observed this bug?

Android, iOS, Web, Web (Android browser), Linux

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on Artix Linux 6.8.7-lqx2-1-lqx, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!
@VijayakumarMariappan VijayakumarMariappan added calendar Calendar component open Open labels May 2, 2024
@PreethikaSelvam
Copy link
Contributor

Hi @davidpanic,

We have checked and found that when the duration is 0, we are unable to replicate the issue. Unfortunately, when we set the duration to a value greater than 0, we can reproduce the issue you reported. To thoroughly investigate the root cause at the source level, we will need some time. We will provide you with more information within two business days on May 08, 2024. Thank you for your understanding and patience in the meantime.

Regards,

Preethika Selvam.

@VijayakumarMariappan VijayakumarMariappan added follow-up scheduled Follow-up scheduled and removed open Open labels May 7, 2024
@davidpanic
Copy link
Author

Not exactly two business days 😅

Anyways, I don't mind, but is there any update on this, I would like to get this resolved ASAP as we have some customers complaining.

@davidpanic
Copy link
Author

I really hate to ping people, but @PreethikaSelvam can you at least update me on what is happening please. A simple "working on it" would suffice, ignoring me is extremely unprofessional on your part.

@Yuvaraj-Gajaraj
Copy link
Contributor

Hi @davidpanic ,

Sorry for the inconvenience, We would like to let you know that, you can achieve your requirements to load the appointment in the calendar when the view gets changed with the help of loadMoreWidgetBuilder and handleLoadMore methods. We have shared the UG and KB documentation below for your reference.

UG,

https://help.syncfusion.com/flutter/calendar/load-more#building-load-more-widget

https://help.syncfusion.com/flutter/calendar/load-more#load-appointments

KB, https://support.syncfusion.com/kb/article/11293/how-to-load-the-appointment-from-json-to-calendar-with-loadmorewidgetbuilder

While checking in the source the architecture is correct and it can be done through load more so change your sample accordingly. Furthermore, we have planned to change the appointment loading flow, which will be available in any of our upcoming releases. If you have any further queries please get back to us, we are always happy to assist you.

Regards,

Yuvaraj.

@marcoancona
Copy link

marcoancona commented Aug 20, 2024

Seems related to #1869

We are experiencing the same.

@Yuvaraj-Gajaraj how to update the view for changes that happen in the background? ( so without a user interaction that could trigger loadMoreWidgetBuilder ?

@hbulens
Copy link

hbulens commented Dec 18, 2024

We've been experiencing the exact same scenario. No updates I suppose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component follow-up scheduled Follow-up scheduled
Projects
None yet
Development

No branches or pull requests

6 participants