This is a migrated thread and some comments may be shown as answers.

Day plus 1 from first Datepicker

2 Answers 26 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 30 Sep 2008, 03:05 PM
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 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 01 Oct 2008, 01:44 PM
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.
0
Jay
Top achievements
Rank 1
answered on 01 Oct 2008, 02:13 PM
Lovely,

Thankyou
J
Tags
Calendar
Asked by
Jay
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Jay
Top achievements
Rank 1
Share this question
or