How do I diable/greyout dates in a calendar

  • Thread starter Thread starter Likhith Areekkal
  • Start date Start date
L

Likhith Areekkal

Hi,

Language: C#, asp .net application

This is a room reservations web application.
I have two Calendars on my website: Calendar1 & Calendar2
Calendar1 shows the current month and Calendar2 shows the next month.
The clients are allowed to do the reseration (if any room(s) is/are
available) for the next 15 days starting from the current date.

Problem no. 1:--------------------

How do I go through the list of dates and grey out the ones (or disable) the
ones that are not valid?

For eg today is Dec. 18, 2004. So, only the following dates in Calendar1
shoud be active and the others must be greyed out or disable.
Dec 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31

In Calendar2 only Jan 1, 2005 must be active (the 15th day) - the remaining
dates must be greyed out.

Problem no.2:---------------------------

Calendar1 and Calendar2 starts with the dates from the previous month as
well.
How do I get rid of those dates from the previous months?

For eg: Dec 2004 looks like this

Sun Mon Tue Wed Thu Fri Sat
28 29 30 1 2 3 4

I would like to get rid of the 28, 29, 30. How will I do this? is there a
setting in the properties where I could just change it?

Please advise.

Thank you for the help.

Regards,
Li
 
Write a Handler for the DayRender event, and modify the Cell parameter as
you see fit.
 
Back
Top