Completed
Last Updated: 07 Mar 2016 10:43 by ADMIN
ADMIN
Dimitar
Created on: 26 Feb 2016 10:22
Category: Editors
Type: Bug Report
0
FIX. RadDateTimePicker - exception when the selected date is February 29 and one performs a zoom operation.
To reproduce:
- Set the value to February 29.
- Open the drop down and zoom 3 times.

Workaround:
private void Calendar_ZoomChanging(object sender, CalendarZoomChangingEventArgs e)
{
    RadCalendar calendar = sender as RadCalendar;
    if (calendar.FocusedDate.Month == 2 && calendar.FocusedDate.Day == 29)
    {
        calendar.FocusedDate = new DateTime(calendar.FocusedDate.Year, calendar.FocusedDate.Month, calendar.FocusedDate.Day - 1);
    }
}
0 comments