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

[Solved] Disabling days on calendar that is less than today's date

1 Answer 61 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 20 Oct 2010, 02:34 PM
Hi,

I have a date picker on my page.  How do I let the user only select a date that is equal to or greater than today's date?  Is there a way of disabling the other days?

Brendan

1 Answer, 1 is accepted

Sort by
0
dfgdfgdfgdfg
Top achievements
Rank 1
answered on 12 Nov 2010, 03:24 PM
If I understood your problem, you just have to set the MinDate to today's date, like this:
<%: Html.Telerik().DatePickerFor(model => model.Whatever).MinDate(DateTime.Now)%>
Tags
Date/Time Pickers
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
dfgdfgdfgdfg
Top achievements
Rank 1
Share this question
or