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

24 hour format in Rad Time Picker.

3 Answers 184 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Ashesh
Top achievements
Rank 1
Ashesh asked on 29 May 2013, 06:59 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 30 May 2013, 10:43 AM
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.

0
Ashesh
Top achievements
Rank 1
answered on 12 Jun 2013, 10:06 PM
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.
0
Kalin
Telerik team
answered on 17 Jun 2013, 12:52 PM
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.

Tags
TimePicker
Asked by
Ashesh
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Ashesh
Top achievements
Rank 1
Share this question
or