In the scheduler I'm using the timeline view and whole days. When resizing an appointment start date it works fine. When resizing the end date though it will offset it one day too far in the future.
So for instance if I have an appointment from 8/4 - 8/6, and I drag the end point to cover 8/7, the args.get_newEndTime() in the OnClientAppointmentResizeEnd event handler will return 8/8 not 8/7.
On the other hand, if I drag the start point of the same appointment the date reported by args.get_newEndTime() will still be the original value of 8/6.
This creates a problem since I don't see any way to detect in the OnClientAppointmentResizeEnd hander which end of the appointment is actually being resized. The start and end dates on the appointment in args has already been changed. Because of this I have to update both start and end dates when that occurs, which will in turn result an incorrect end date when the end point is resized vs. the start point.
Is there any way to detect in the OnClientAppointmentResizeEnd event handler which end of the appointment is being dragged so that I can account for this? Or to get it to report the correct day?
ETA - the args._targetSlot._startTime will contain the correct date value for the target slot. But there's still no way to tell for sure which end of the appointment is being resized.
So for instance if I have an appointment from 8/4 - 8/6, and I drag the end point to cover 8/7, the args.get_newEndTime() in the OnClientAppointmentResizeEnd event handler will return 8/8 not 8/7.
On the other hand, if I drag the start point of the same appointment the date reported by args.get_newEndTime() will still be the original value of 8/6.
This creates a problem since I don't see any way to detect in the OnClientAppointmentResizeEnd hander which end of the appointment is actually being resized. The start and end dates on the appointment in args has already been changed. Because of this I have to update both start and end dates when that occurs, which will in turn result an incorrect end date when the end point is resized vs. the start point.
Is there any way to detect in the OnClientAppointmentResizeEnd event handler which end of the appointment is being dragged so that I can account for this? Or to get it to report the correct day?
ETA - the args._targetSlot._startTime will contain the correct date value for the target slot. But there's still no way to tell for sure which end of the appointment is being resized.