Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi

I need an application of PopUp calendar showing only future dates(past dates should be deselectd) user has no scope to select the past dates.he has to select only the current and future dates.Previous months should be disabled.


I got the code for calender.But it has past date selection.i want to disable it.


Praneeth
Posted
Updated 11-Jun-20 20:08pm
v2
Comments
Sandeep Mewara 28-Sep-10 16:05pm    
If you have code base, you should be able to do this modification. Did you try?
Robert Adamo 29-Sep-10 19:29pm    
Show us the code. Please

1 solution

0. Amend the calender control to have optional minimum and maximum date properties.
1. In the UI grey out any date displayed before or after the minimum maximum date if set.
2. If you cannot actually disable the field, then ignore the clicks for the out of range dates.

This is relatively easy to impliment. Unfortunately you have not provided any source code for your calander control so it is not possible to give any code examples.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900