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

RadDatePicker no past dates

1 Answer 42 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Jul 2009, 04:34 PM
Is there a property for the RadDatePicker that prevents dates in the past from being selected or do I have to set the MinDate property to the system date programmatically on the server side?

John

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Jul 2009, 06:02 AM
Hello John,

You could try the following approach:
<telerik:RadDatePicker MinDate='<%# DateTime.Today.AddDays(-1) %>' runat="server" 
    ID="RadDatePicker1"
</telerik:RadDatePicker> 

protected void Page_Load(object source, EventArgs e) 
    if (!IsPostBack) RadDatePicker1.DataBind(); 

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
John
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or