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

RadDateTime Picker showing Time

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eddy
Top achievements
Rank 1
Eddy asked on 04 Apr 2008, 03:44 AM
Can anyone help with RadDateTimePicker and times ?

I am having a lot of issues with the RadDateTimePicker when trying to deal with Times.

It does not seem to work at all when I have ShowUpDown = true
The best settings I have found to work have been
      Format = Long
     CustomFormat = HH:mm:ss
     ShowUpDown = true

But even this setting seems to have some issues when trying to change time from
from 1:30:45 to 23:12:45 programtically.

I would like to just Bind a DateTime to the control
    radDateTimePicker1.DataBindings.Add("Value", controller, "EffectiveTime");
This seems to work when dealing with date formats but not when the settings are
      Format = Time or CustomFormat = HH:mm:ss

Can you please let me know if this control can successfully be bound with a time format.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 04 Apr 2008, 07:49 AM
Hello Igor,

Thank you for contacting us.

I've tested the RadDateTimePicker with time formats.  The custom format is set to:

this.radDateTimePicker3.DateTimePickerElement.CustomFormat = "HH:mm:ss";

Then, I set the dateTime to:

this
.radDateTimePicker3.DateTimePickerElement.Value = new DateTime(1980, 1, 1, 1, 30, 45 );

After that, on a button click I set the value to:

this.radDateTimePicker3.DateTimePickerElement.Value = new DateTime(1980, 1, 1, 23, 12, 45);

and everything works as it is expected.

The test is made with the standard style of RadDateTimePicker. The issue when the up/down buttons are shown is confirmed and will be addressed in the upcoming Q1 release.
RadDateTimePicker, uses the standard WinForms DataBinding, we have not made any changes to that mechanism.

If you experience more issues with RadDateTimePicker, please give me more information, or send me a simple project demonstrating the issues to let me test the component.

I'm looking forward to your response.

Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Eddy
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or