24 hour format in Rad Time Picker.

4 posts, 0 answers
  1. Ashesh
    Ashesh avatar
    14 posts
    Member since:
    May 2013

    Posted 29 May 2013 Link to this post

    How can i create a Rad Time Picker in RadGrid that gives me 24 hours in military style and also it has to have 30 min. interval starting from 04:00 to 03:30 next day.

    Anybody has any idea how to do this.


    Thank you in advance.
  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 30 May 2013 Link to this post

    Hello,

    In order to have 24h military time parsing you should set the ShortTimePattern property of the culture in the code behind to "HHmm" - for more detailed information please see the Military DateTime Parsing article from our documentation.

    The TimePicker control is bound to TimeSpan object and that object represents a time span of a day, but only if the time is unrelated to a particular date. In the current version of the control is not possible to set a time interval bigger than a day. You could use the ClockItemsSource collection of the DateTimePicker to add all the required clock items, but those which are after 12 AM won't be corresponding with the next day date. For more detailed information please refer to the Clock Items article from our documentation.

    Regards,
    Kalin
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Ashesh
    Ashesh avatar
    14 posts
    Member since:
    May 2013

    Posted 12 Jun 2013 Link to this post

    I fixed this issue but i have another issue. I have a custom time starting from 04:00 Am and it has interval of 30 min i have a function that returns all the time starting from 04:00 am and goes till 03:30 on 24 hour. But when i bind this time with either datetime picker or time picker it shows time starting from 12:00 Am and when i click 12:00 am it populates the datetime picker time with 04:00 am. so i don't know what's going on. Can you help me with this.
  5. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 17 Jun 2013 Link to this post

    Hello Ashesh,

    The provided information is not enough for us to understand the scenario, can you send us some sample code ( you can paste it here using the Format Code Block tool), so we to be able to test the exact case and provide further assistance.

    Looking forward to your response.

    Regards,
    Kalin
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top