This is a migrated thread and some comments may be shown as answers.

Edited appointments are reset after AppointmentSaving()

3 Answers 10 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 12 Nov 2020, 10:36 AM

Hello everyone,

I am currently stuck on a problem where edited appointments seem to get reset during the edit event chain.

Up until AppointmentSaving, everything looks normal. I set some breakpoints in my appointment's Start and End properties and both get updated to the new time. However, shortly after AppointmentSaving but before AppointmentEdited, the appointment's properties get reset to their previous state.

Through the aforementioned breakpoints, I was able to trace my problem down to the ScheduleView's EditableObjectBase class, more specifically its EndEdit() method, where a backup of the appointment's original state seems to be restored. Strangely though, CancelEdit() does not restore the state and leaves Start and End as is (in their edited state). Is this supposed to happen? I could not find any information about that behavior in the docs.

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 17 Nov 2020, 09:55 AM

Hello Simon,

Indeed, there is some backup related logic coming from the EditableObjectBase implementation that may not be very straightforward in some cases. I will investigate the reported behavior and get back to you with more information within the next few hours.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Martin Ivanov
Telerik team
answered on 17 Nov 2020, 05:53 PM

Hello Simon,

I will need some more time to check this. Will get back here tomorrow.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Martin Ivanov
Telerik team
answered on 18 Nov 2020, 06:59 PM

Hello Simon,

Please excuse me for the delay. I've tried to recreate your requirement with a custom Appointment implementation in order to add breakpoints on the End and Start properties, but I couldn't reproduce the issue. Can you please check the attached project and let me know if I am missing anything?

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ScheduleView
Asked by
Simon
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or