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

RadDateTimePicker Issue

1 Answer 131 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
nisar
Top achievements
Rank 1
nisar asked on 08 Jul 2013, 10:49 AM
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);

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Jul 2013, 10:23 AM
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 >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
nisar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or