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

How to disable previous date in Rad Date Picker

4 Answers 1474 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 20 Aug 2010, 01:14 PM
Hi

How to i Disable Previous dates,  Means less then today in Rad Date Picker.

I need to show to select current date and future dates only.

i want to disable Previous dates.

Please Reply for this soon..

Thanks,
Ashok Anbarasu.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Aug 2010, 01:25 PM
Hello,

Set the MinDate of the RadDatePicker control to disable the past days.

Code Example:
protected void Page_Load(object sender, EventArgs e)
{
     RadDatePicker1.MinDate = DateTime.Today.Date;
}


Thanks,
Princy.
0
shubhangi
Top achievements
Rank 1
answered on 27 Aug 2015, 06:01 AM
Above code is not working..Can you give me any other idea to achieve this
1
Viktor Tachev
Telerik team
answered on 28 Aug 2015, 12:41 PM
Hi,

I tested the following code on my end and it is working as expected. Would you give it a try and let me know how it works for you?

<telerik:RadDatePicker runat="server" ID="RadDatePicker1" OnLoad="RadDatePicker1_Load"></telerik:RadDatePicker>

protected void RadDatePicker1_Load(object sender, EventArgs e)
{
    (sender as RadDatePicker).MinDate = DateTime.Today;
}


Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
mahen
Top achievements
Rank 1
answered on 13 Apr 2017, 04:26 AM

hi 

i have a two Datepicker like a Date1 and Date2 but i want  a 

if m select a Date 1 so all less than date disable  Date2 Plz explain

Tags
Calendar
Asked by
Ashok
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
shubhangi
Top achievements
Rank 1
Viktor Tachev
Telerik team
mahen
Top achievements
Rank 1
Share this question
or