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

Problem With RadTimePicker

2 Answers 59 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Hani Arab
Top achievements
Rank 1
Hani Arab asked on 12 Jan 2010, 02:43 AM
When we select any time from the list (AM/PM) it will show only AM within the textbox.

i.e.
11:00 AM and 11:00 PM( or 23:00 PM) both are displayed 11:00 AM after the time is selected and time picker pop up is closed.

Any idea what the problem could be?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Jan 2010, 06:20 AM
 Hello Hani,

By default the RadTimePicker displays the AM/PM designator according to the selection made. Check if you have set any date format for the control? I tried the following format and it works as expected:

aspx:
 <telerik:RadTimePicker ID="RadTimePicker1" runat="server"
    <DateInput runat="server" DateFormat="hh:mm tt" > 
    </DateInput> 
 </telerik:RadTimePicker> 

Thanks
Princy.
0
Hani Arab
Top achievements
Rank 1
answered on 12 Jan 2010, 11:04 PM
Thanks Princy.

Yesterday, I found the problem. we have been using a wrong date format. "hh:mm:tt" which must be "hh:mm tt".

You hit the target ;) it was the date format causing the unexpected behavior.
Tags
Calendar
Asked by
Hani Arab
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Hani Arab
Top achievements
Rank 1
Share this question
or