This is a migrated thread and some comments may be shown as answers.
Block Date
3 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
Bogice
Top achievements
Rank 1
Bogice asked on 18 Jun 2010, 07:41 PM
Hi Telerik,
Is there anyway to block certain days in the future, so that the user can't select them. A small code snip set or small demons project would be much appreciated
Thank you

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 21 Jun 2010, 06:50 AM
Hello,

Set the RangeMaxDate property of calendar to current date. The code shows how to achieve this.

Server Code:
 
protected void Page_Load(object sender, EventArgs e) 
    RadCalendar1.RangeMaxDate = DateTime.Now.Date; 


-Shinu.
0
Bogice
Top achievements
Rank 1
answered on 21 Jun 2010, 03:28 PM
Hi Shinu,
Thank you for your reply. I have set the date range for max and min selectable date. How about blocking some days in between? For example the available dates range from now to October except 4th July or Labor Day.
Bogice
0
Shinu
Top achievements
Rank 1
answered on 22 Jun 2010, 05:04 AM
Hi Bogice,

Refer the code library which demonstrates how to disable the days in calendar.
Disabling calendar days


-Shinu.
Asked by
Bogice
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Bogice
Top achievements
Rank 1
Share this question
or