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

RadTimePicker Shows Date

2 Answers 65 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
John S.
Top achievements
Rank 1
John S. asked on 29 Dec 2012, 08:34 PM
Hello,

I am trying to set the time of a RadTimePicker from CodeBehind. No matter how I do it a date always shows in the TimePicker. When I click into the control the time I set is there; hwoever, it goes back to date when it loses focus.

If I set the Time with the RadTimePicker, it shows the time, even after losing focus.

It is very confusing why a time picker would even contain selected date properties as it is a time.

I have tried this a suggested in the forums but id doesn't work for me either.
Dim oTime As DateTime = Convert.ToDateTime(m_TimeValue)
m_TimePicker.SelectedTime = oTime.TimeOfDay

Any suggestions?

Thanks,
John S.

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 02 Jan 2013, 01:43 PM
Hi John,

I was not able to reproduce the issue. I prepared a small example and attached it to this forum post. Could you please give it a try and let me know what is the difference between my sample project and yours?

Kind regards,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John S.
Top achievements
Rank 1
answered on 02 Jan 2013, 03:17 PM
Hello Kostadin,

Thanks for the project. It works fine with what you sent which is essentially what I am doing. Obviously there must be something different. I will look more into it and get back if I need more help.

Thanks,
John
Tags
Calendar
Asked by
John S.
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
John S.
Top achievements
Rank 1
Share this question
or