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

RadDatePicker-Disable future dates.

1 Answer 812 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tarang
Top achievements
Rank 1
Tarang asked on 10 Nov 2011, 11:08 AM
Hi,

I am new to telerik,I have implemented a calender with RadDatePicker and wanted too disable future dates.
For that in the pageload of the page I wrote this code:-

if

 

(!Page.IsPostBack)

 

{

 

this.radDatePicker1.MaxDate = DateTime.Today;

 

}

I checked it was working fine,for further testing ,I changed the system date to various dates and found that it was fine.
But after two days when I again checked,this code seemed to have no effect as all future dates are enabled.

Can anyone please let me konw how can I achieve my task?

Thanks,
Tarang

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Nov 2011, 04:44 PM
Hi Tarang,

You should not have problems with setting MaxDate property of RadDatePicker. Please elaborate a bit more on the matter and if it is possible, share sample project that illustrates the issue, so we can test/debug it locally.

All the best,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Calendar
Asked by
Tarang
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or