Completed
Last Updated: 07 Dec 2016 08:44 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 28 Nov 2016 07:05
Category: Scheduler/Reminder
Type: Bug Report
2
FIX. RadScheduler - additional time slot is created for an appointment that ends at midnight on the first day of the other month
When you create an appointment that starts on 30 November and ends at 00:00 on 1 December, the appointment time slot is extended to the next day. This happens when it is the end of the previous month and the beginning of the next one. 

Please refer to the attached sample gif file illustrating how to reproduce the problem with the Demo Application. 

Workaround: if the end time is at midnight, reduce the duration with one minute.

 private void radScheduler1_AppointmentAdded(object sender, Telerik.WinControls.UI.AppointmentAddedEventArgs e)
        {
            if (e.Appointment.End.Hour==0 && e.Appointment.End.Minute==0)
            {
                e.Appointment.End = e.Appointment.End.AddMinutes(-1);
            }
        }
0 comments