RadDateTime Picker showing Time

2 posts, 0 answers
  1. Eddy
    Eddy avatar
    3 posts
    Member since:
    Sep 2007

    Posted 03 Apr 2008 Link to this post

    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.

  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 04 Apr 2008 Link to this post

    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:

    .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
Back to Top