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
answered on 30 May 2013, 10:43 AM
In order to have 24h military time parsing you should set the ShortTimePattern propertyof 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.
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.
answered on 17 Jun 2013, 12:52 PM
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.