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

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

1 Answer 41 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Timothy
Top achievements
Rank 1
Timothy asked on 16 Jan 2013, 03:58 AM
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.

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 16 Jan 2013, 02:16 PM
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: http://www.telerik.com/support/pits.aspx#/public/winforms/14037.

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)
    {
        base.ApplySettingsToEvent(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.

Regards,
Ivan Todorov
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Scheduler and Reminder
Asked by
Timothy
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or