Parsing dates with a two-digit year in a derived class

2 posts, 0 answers
  1. Whit
    Whit avatar
    1 posts
    Member since:
    Jun 2015

    Posted 04 Jun 2015 Link to this post

    I am building a custom control that inherits RadDatePicker and overrides the OnParseDateTime method to implement custom parsing logic. One of the requirements of this logic is being able to parse a date in the MM/dd/yy format. Unfortunately, whenever a date is entered in that format, the control changes the CurrentDateTimeText, but not the DateTimeText, and thus the ParseDateTimeValue event is never raised.


    What's curious is that I have a similar control (derived from RadDateTimePicker) that accepts that format and raises the ParseDateTimeValue event as expected, even without a time value. However, if its InputMode is changed to "DatePicker", then it will no longer parse dates with a two-digit year.


    Is this a known bug, or am I missing something?

  2. Geri
    Geri avatar
    62 posts

    Posted 08 Jun 2015 Link to this post

    Hi Whit,

    Thank you for contacting us.

    We tried to reproduce the described behavior, but with no luck - please see the attached video.

    Attached you can find as well a sample project with custom RadDatePicker control - please take a look and let us know whether we're on the same page. It would be of great help if you could modify it so the described behavior to appear and open a support ticket with the project attached, so we can test it on our side.

    Looking forward to your reply.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top