This question is locked. New answers and comments are not allowed.
Hello
I try to create a YearPicker based on DateTimePicker.In the constructor I have set the following:
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
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