2 posts, 1 answers
  1. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 22 Sep 2010 Link to this post

    I am using version 2009.3.1314.35 of the Telerik controls.

    When I place a datetimepicker control on an empty form, I am expecting to see a control.SelectedTime property. However, I don't see it.



    telerik:RadTimePicker ID="RadTimePicker1" runat="server">




    Inside my designer file, I have the following:



    /// <summary>






    /// RadTimePicker1 control.






    /// </summary>






    /// <remarks>






    /// Auto-generated field.






    /// To modify move field declaration from designer file to code-behind file.






    /// </remarks>






    protected global::Telerik.Web.UI.RadTimePicker RadTimePicker1;



    How can I get this property value to appear in the code behind?

  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Sep 2010 Link to this post

    Hello William,

    You could use the SelectedDate property of RadTimePicker to get the time selected. And you can extract the time from the SelectedDate value.

         DateTime dt = RadTimePicker1.SelectedDate.Value;

Back to Top