-
25 May 2012 10:37 PM #1
Unanswered: ExtJS Date Picker disable Dates after a Particular Date
Unanswered: ExtJS Date Picker disable Dates after a Particular Date
Hi..
I want to enable only a range of values before a particular date. I am doing a birthday datepicker. The one with more than 18 years of old should be able to register. So I have to disable all the dates which does not satisfy this condition. Could you please help me!
Thanks!!
-
26 May 2012 6:09 AM #2
Yep..
Use maxDate property of the datepicker..
Set the value to
Code:value = new Date(); value.setYear(value.getYear()-18);
-
26 May 2012 2:14 PM #3
You can add a listener before each page load then use setMaxValue method of date field with a function that calculates the right max. date value.
"People will never forget how you made them feel."
linkedin.com/in/talhakabakus


Reply With Quote