11 Mar 2011 10:27 AM #1
DatePicker disabled dates
I have a DatePicker that is being used to allow users to input pay dates. In this situation, pay dates are every 2 weeks. I have a seed date to start with, but need to disable all other dates that are not in 2 week increments from that date.
Has anyone done anything like this? I am able to disable dates using the disabledDates config option, and the setDisabledDates function, but in my case, it would be better to have an enabledDates since only a couple of dates will be enabled per month.
Also, I was looking for an event that fired when the month was changed on the DatePicker. Is there such an event? I could then set the disabled dates when the month was changed. This would seem more practical than doing it for every month of every year up front.
By lobo_tuerto in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 22 Dec 2015, 6:50 AM
By irallaa in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 17 Jan 2009, 6:58 AM
By cimperia in forum Ext 2.x: BugsReplies: 8Last Post: 9 Jul 2008, 11:10 PM
By strandmyr in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 22 Oct 2007, 1:22 AM