RadDateTimePicker Issue

2 posts, 0 answers
  1. nisar
    nisar avatar
    11 posts
    Member since:
    Sep 2008

    Posted 08 Jul 2013 Link to this post

    Hello,

    I am using "RadDateTimePicker" for choosing only time. The issues is that when i change the hour in the "RadDateTimePicker" control,
    the time automatically changes from PM To AM. Suppose the Time shown is "6:44:33 PM", Now if i select "6" (hour) and type 1 using keyboard, the PM part of date automatically changes to AM. Below is the code regarding how i have declare the RadDatetimePicker.

    this.radDateTimePicker1.Culture = new System.Globalization.CultureInfo("en-CA");
    this.radDateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Time;
                this.radDateTimePicker1.Location = new System.Drawing.Point(135, 176);
                this.radDateTimePicker1.MaxDate = new System.DateTime(9998, 12, 31, 0, 0, 0, 0);
                this.radDateTimePicker1.MinDate = new System.DateTime(2000, 12, 31, 0, 0, 0, 0);
                this.radDateTimePicker1.Name = "radDateTimePicker1";
                this.radDateTimePicker1.NullableValue = new System.DateTime(2012, 9, 11, 9, 28, 9, 125);
                this.radDateTimePicker1.NullDate = new System.DateTime(((long)(0)));
                this.radDateTimePicker1.ShowUpDown = true;
                this.radDateTimePicker1.Size = new System.Drawing.Size(138, 20);
                this.radDateTimePicker1.TabIndex = 93;
                this.radDateTimePicker1.TabStop = false;
                this.radDateTimePicker1.Text = "radDateTimePicker1";
                this.radDateTimePicker1.Value = new System.DateTime(2012, 9, 11, 9, 28, 9, 125);
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 Jul 2013 Link to this post

    Hello Nisar,

    Thank you for writing.

    We use to have such an issue which is already resolved in our latest version. Here is a link with the item's details: http://www.telerik.com/support/pits.aspx#/public/winforms/15349.

    I would suggest first to use our latest version and second to consider RadTimePicker, which is a control designed for working with time. Here is its documentation: http://www.telerik.com/help/winforms/editors-timepicker-overview.html. Demos of it are also available in our demo application.

    I hope that you find this information useful.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top