RadTimePicker set time HH:mm server side

3 posts, 0 answers
  1. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 20 Aug 2009 Link to this post


    Some way to set the time server side. I have tested some ways but are only Read(Get). Passing from codebehind to client side some way?.

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

    Posted 21 Aug 2009 Link to this post


    Try the following code in order to set the time from code behind.

    protected void Page_Load(object sender, EventArgs e) 
        RadTimePicker1.SelectedDate = DateTime.Parse("12:45"); 
      //  RadTimePicker1.SelectedDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 12, 45, 0); 

    Go through the following forum link which describes how to set value from client side. Hope this will help you.
    Set the time in radtimepicker from javascript

  3. Ashandra
    Ashandra avatar
    2 posts
    Member since:
    Oct 2013

    Posted 19 Aug 2014 in reply to Shinu Link to this post

    rdBookingTimePicker.DbSelectedDate = bookingDetails.Entity.BookingTime;

    The radtime picker has a property DbSelectedDate which will do the conversion from a string value.

    Eg. rdBookingTimePicker.DbSelectedDate = "08:00"

    It will take care of the rest.
Back to Top