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

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

1 Answer 83 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Whit
Top achievements
Rank 1
Whit asked on 04 Jun 2015, 09:09 PM

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?

1 Answer, 1 is accepted

Sort by
0
Geri
Telerik team
answered on 08 Jun 2015, 08:18 AM
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.

Regards,
Geri
Telerik
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
Tags
DatePicker
Asked by
Whit
Top achievements
Rank 1
Answers by
Geri
Telerik team
Share this question
or