seconds?

5 posts, 0 answers
  1. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 25 Jun 2015 Link to this post

    How do I setup a RadTimePicker to allow the user to enter seconds (as well as hours and minutes)?

    Thanks,

     -Lou
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 30 Jun 2015 Link to this post

    Hello Lou,

    Thank you for writing.

    You can set the RadDateTimePicker.Format property to DateTimePickerFormat.Custom and specify the desired format by using the CustomFormat property:
    this.radDateTimePicker1.Format = DateTimePickerFormat.Custom;
    this.radDateTimePicker1.CustomFormat = "HH:mm:ss";

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 30 Jun 2015 in reply to Dess Link to this post

    Hi Dess, thanks for the reply, however... I was asking about the RadTimePicker control, not RadDateTimePicker :)

    Is there a way to have the RadTimePicker control display seconds?

     Thanks,

     -Lou

  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 03 Jul 2015 Link to this post

    Hello Lou,

    Thank you for writing back.

    Please excuse us for the misunderstanding. Here is the sample code snippet for the RadTimePicker:
    this.radTimePicker1.TimePickerElement.Format= "HH:mm:ss";

    I hope this information helps. If you have any additional questions, please let me know.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 06 Jul 2015 in reply to Dess Link to this post

    It works - thanks Dess.

     -Lou

Back to Top
UI for WinForms is Visual Studio 2017 Ready