469,295 Members | 1,914 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,295 developers. It's quick & easy.

How do I diable/greyout dates in a calendar

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
Nov 16 '05 #1
1 1991
Write a Handler for the DayRender event, and modify the Cell parameter as
you see fit.
Likhith Areekkal wrote:
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


--
Truth,
James Curran [erstwhile-MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Christopher M. Pieper | last post: by
4 posts views Thread by Dale | last post: by
24 posts views Thread by PromisedOyster | last post: by
2 posts views Thread by Rachel Suddeth | last post: by
5 posts views Thread by na | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.