RadTimePicker Shows Date

3 posts, 0 answers
  1. John S.
    John S. avatar
    90 posts
    Member since:
    Aug 2004

    Posted 29 Dec 2012 Link to this post

    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. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 02 Jan 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John S.
    John S. avatar
    90 posts
    Member since:
    Aug 2004

    Posted 02 Jan 2013 Link to this post

    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
Back to Top