Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > ParseDateTimeValue not raised with custom DateTimeFormat

Answered ParseDateTimeValue not raised with custom DateTimeFormat

Feed from this thread
  • Bruno avatar

    Posted on Jan 2, 2012 (permalink)

    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

    Reply

  • Answer Ivo Ivo admin's avatar

    Posted on Jan 5, 2012 (permalink)

    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 >>

    Reply

  • Bruno avatar

    Posted on Jan 5, 2012 (permalink)

    Thank you!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > ParseDateTimeValue not raised with custom DateTimeFormat
Related resources for "ParseDateTimeValue not raised with custom DateTimeFormat"

Silverlight DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]