Bug: type 0 then leave

4 posts, 0 answers
  1. James
    James avatar
    47 posts
    Member since:
    Jun 2009

    Posted 18 Sep 2009 Link to this post

    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


  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 22 Sep 2009 Link to this post

    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.
  3. DevCraft banner
  4. Jason
    Jason avatar
    30 posts
    Member since:
    May 2009

    Posted 12 Jan 2010 Link to this post

    I am encountering this same issue in the dec release of the controls. is this not fixed yet?
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 14 Jan 2010 Link to this post

    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.
Back to Top