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

[Solved] How to set min / max date ?????

3 Answers 306 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mustafa
Top achievements
Rank 2
Mustafa asked on 09 Nov 2009, 02:27 PM
Hi,
I'm using RadSchedular , version 2007 November. , trying to set min & max date to limit my schedular. for example, I want my schedular show the dates between 2007.03.03 and 2010.01.01  . is there any property could posible to do this?
Please help asap..
many thanksss
Mustafa Y.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 10 Nov 2009, 08:37 PM
I'm not sure of when these properties were implemented in the Telerik controls but this has worked for me:

 
protected void RadScheduler1_PreRender(object sender, EventArgs e)  
{  
    RadCalendar myCalendar = RadScheduler1.FindControl("SelectedDateCalendar"as RadCalendar;  
    myCalendar.RangeMinDate = ...; 
    myCalendar.RangeMaxdate = ...;  
}  

0
Ez Bala
Top achievements
Rank 1
answered on 10 Nov 2009, 11:00 PM
Please look at the KB http://demos.telerik.com/aspnet-ajax/scheduler/examples/optimizedqueries/defaultcs.aspx

This one shows how to restrict data selection to the dates visible on the calendar. Hope this helps.

E.Z.
0
Mustafa
Top achievements
Rank 2
answered on 11 Nov 2009, 07:26 AM
Yeah! It's awsome..  in this way, I can limit my calender first, then set ShowNavigationPane to false, finally, I am able to  control  my schedular. Thanks boss! You just made my day...
Mustafa Y.
Tags
Scheduler
Asked by
Mustafa
Top achievements
Rank 2
Answers by
Schlurk
Top achievements
Rank 2
Ez Bala
Top achievements
Rank 1
Mustafa
Top achievements
Rank 2
Share this question
or