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

Bug: type 0 then leave

3 Answers 59 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 18 Sep 2009, 08:45 AM
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


3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 22 Sep 2009, 10:33 AM
Hello James,

Please accept our apologies for the caused inconvenience. This is actually a bug in our RadDatePicker control. We will try to fix it for the upcoming internal build due on Friday. Your points have been updated updated.

All the best,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jason
Top achievements
Rank 1
answered on 12 Jan 2010, 03:33 PM
I am encountering this same issue in the dec release of the controls. is this not fixed yet?
0
Boyan
Telerik team
answered on 14 Jan 2010, 09:02 AM
Hello Jason,

This issue is fixed on the 17 th of December so it is not included in SP1. It will be included in SP2 and also in any internal builds after this date.

Kind regards,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
DatePicker
Asked by
James
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Jason
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or