Issue when End Time is 12:00 AM on Month View

2 posts, 0 answers
  1. Timothy
    Timothy avatar
    37 posts
    Member since:
    Nov 2012

    Posted 15 Jan 2013 Link to this post

    When I set an appointment to something like:
    Start Time - 1/15/2013 4:00:00 PM
    End Time - 1/16/2013 12:00:00 AM

    the appointment spans both days (1/15 and 1/16). Since 1/16/2012 12:00 AM is the same thing as 1/15/2012 24:00, I would not expect this behavior. See the attached image for an example.

    I realize that appointments in the month view are taking up the whole day horizontally but an 8 hour appointment starting at 4:00 PM should not look like it is also spilling over into the next day. At least not in my opinion.

    I also realize that I can get around this by having the user enter 11:59:59 PM. But 1) its not accurate and 2) its clunky.

    Microsoft's Outlook handles this correctly.
  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 16 Jan 2013 Link to this post

    Hello Timothy,

    Thank you for contacting us.

    This appears to be an issue in MonthView. I have logged it in our Public Issue Tracking System and we will address in a future release. Here is the link to the PITS item:

    For the time being, I would suggest using the "11:59:59 PM" end time as a workaround. You can override the ApplySettingsToEvent method of the EditAppointmentDialog to internally subtract one second when needed:
    class MyEditDialog : EditAppointmentDialog
        protected override void ApplySettingsToEvent(IEvent targetEvent)
            if (targetEvent.End.TimeOfDay == TimeSpan.Zero)
                targetEvent.End = targetEvent.End.AddSeconds(-1);

    Your Telerik points have been updated. Should you have any other questions, feel free to ask.

    Ivan Todorov
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top