Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2290
invalidate causing day view to flicker
posted

hi,

I noticed that when after changing datasource by adding a new appointment or modifying existing one (time, location or title) and then calling Invalidate on a calendar view  the whole day view is erased first and then repainted. 

So say I have a view on top of the calendar that allows to modify one of the many appointment and display changes on a calendar view as they are applied.

Change start time - screen erased and all appointments are repainted

Change location - screen erased and all appointments are repainted

Change title - screen erased and all appointments are repainted

On top of it invalidate also triggers GetAppointmentsAsync that adds to a delay  especially if web service is used to get data.

Any suggestions on how to deal with this?

Thank you

Mark

  • 40030
    Offline posted

    Hi Mark, 

    Currently Invalidate is the only way to force a refresh, but as the method's documentation states, it forces a refresh of the theme and appointments. 

    We can probably add more granular control though. 

    For the time being though, perhaps having an "Apply/Save" button so that you're not triggering an update after every action. And only once the user has finished editing the appointment it would update. 

    -SteveZ