I think there might be a slight bug with the RadCalendar and the "DisplayDateEnd" property.
I have a RadCalendar in my Silverlight Application.
I set the SelectedDate, SelectableDateEnd, and DisplayDateEnd all to DateTime.Today.AddDays(-1).
The problem seems to be with the DisplayDateEnd. I get the exception:
System.ArgumentOutOfRangeException: Invalid DisplayDateEnd value.
Parameter name: sender
at Telerik.Windows.Controls.RadCalendar.OnDisplayDateEndChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.RadCalendar.set_DisplayDateEnd(Nullable`1 value)
at STARv2.MainPage.MainPage_Loaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
I believe this will only happen on the 1st of the month.. and possibly only for today.. so if you want to be able to test it out, I'd HIGHLY recommend doing it today. This code has been in my application for about 2 to 3 weeks without incident, then today I suddenly get this problem.
Please take a look at it ASAP in order to be able to properly diagnose it quickly.