I hit a bug in my app today and reproduce it in a very simple example, just put this in your page:
<input:RadDatePicker />
type 0 then type tab key (this will cause the focus leaving from it), then I got an exception:
---------------------------
Error
---------------------------
System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.DateTimeEvaluator.GetDateFromSingleEntry(Token token, DateTime date)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.SingleEntry.Evaluate(DateTime currentDate, FormatInfo formatInfo)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.DateTimeEntry.Evaluate(DateTime currentDate, FormatInfo formatInfo)
at Telerik.Windows.Controls.RadDatePicker.ParseDateAndUpdateTextBox()
at Telerik.Windows.Controls.RadDatePicker.OnInputBoxLostFocus(Object sender, RoutedEventArgs e)
at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
---------------------------
OK
---------------------------
type other invalid message the control can automatically remove it, but seems the 0 is a exception
update: the version is 2009_2_0812 related to above error message. I also reproduced with version 2009_2_0911
James
<input:RadDatePicker />
type 0 then type tab key (this will cause the focus leaving from it), then I got an exception:
---------------------------
Error
---------------------------
System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.DateTimeEvaluator.GetDateFromSingleEntry(Token token, DateTime date)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.SingleEntry.Evaluate(DateTime currentDate, FormatInfo formatInfo)
at Telerik.Windows.Controls.DatePicker.DateTimeParsing.DateTimeEntry.Evaluate(DateTime currentDate, FormatInfo formatInfo)
at Telerik.Windows.Controls.RadDatePicker.ParseDateAndUpdateTextBox()
at Telerik.Windows.Controls.RadDatePicker.OnInputBoxLostFocus(Object sender, RoutedEventArgs e)
at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
---------------------------
OK
---------------------------
type other invalid message the control can automatically remove it, but seems the 0 is a exception
update: the version is 2009_2_0812 related to above error message. I also reproduced with version 2009_2_0911
James