Day plus 1 from first Datepicker

3 posts, 0 answers
  1. Jay
    Jay avatar
    17 posts
    Member since:
    Jun 2007

    Posted 30 Sep 2008 Link to this post

    Hi,

    I have two datepickers and would like the first to pick startdate  "today" and the second datepicker to have dates able to be selected from the next day onwards.

    Is this possible. Thanks in advance
    J
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Oct 2008 Link to this post

    Hello Jay,

    You could use the following code in order to achieve the required functionality:

    ASPX:
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
            <div> 
                <telerik:RadDatePicker ID="RadDatePicker1" runat="server"
                </telerik:RadDatePicker> 
                  <telerik:RadDatePicker ID="RadDatePicker2" runat="server"
                </telerik:RadDatePicker> 
            </div> 

    CS:
     protected void Page_Load(object sender, EventArgs e) 
        { 
            RadDatePicker1.SelectedDate = DateTime.Today; 
            RadDatePicker2.MinDate = DateTime.Today.AddDays(1); 
        } 

    Let us know if this helps.

    Sincerely yours,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jay
    Jay avatar
    17 posts
    Member since:
    Jun 2007

    Posted 01 Oct 2008 Link to this post

    Lovely,

    Thankyou
    J
Back to Top