ParseDateTimeValue not raised with custom DateTimeFormat

3 posts, 1 answers
  1. Bruno
    Bruno avatar
    54 posts
    Member since:
    Jul 2012

    Posted 02 Jan 2012 Link to this post

    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. Answer
    Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 05 Jan 2012 Link to this post

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

  3. DevCraft banner
  4. Bruno
    Bruno avatar
    54 posts
    Member since:
    Jul 2012

    Posted 05 Jan 2012 Link to this post

    Thank you!
Back to Top