RadTimePicker set time HH:mm server side

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

    Posted 20 Aug 2009 Link to this post

    Hi,

    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?.

    Thanks.

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

    Posted 21 Aug 2009 Link to this post

    Pierre,

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

    C#:

     
    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

    -Shinu.

Back to Top