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

ParseDateTimeValue not raised with custom DateTimeFormat

2 Answers 54 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 02 Jan 2012, 02:43 PM
Hello

I try to create a YearPicker based on DateTimePicker.In the constructor I have set the following:
this.InputMode = InputMode.DatePicker;
this.DateSelectionMode = Telerik.Windows.Controls.Calendar.DateSelectionMode.Year;
this.Culture = new System.Globalization.CultureInfo("en-US");
this.Culture.DateTimeFormat.ShortDatePattern = "yyyy";
this.DateTimeWatermarkContent = string.Empty;
this.ParseDateTimeValue += this.RexYearPicker_ParseDateTimeValue;

It works fine, when I type '2012' or just '12'. But when I type 'something' into the control the ParseDateTimeValue will not be called.
I even tried to set the ParseMode to ParseMode.Always.
Can you tell me why the event ParseDateTimeValue is not fired?

I'm using the SL5 library.
Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivo
Telerik team
answered on 05 Jan 2012, 09:53 AM
Hi,

Thank you for your feedback

It seems this is an issue at our side. It will be fixed for the next internal build.

I have also updated your Telerik points.

All the best,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Bruno
Top achievements
Rank 1
answered on 05 Jan 2012, 02:49 PM
Thank you!
Tags
DatePicker
Asked by
Bruno
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or