PDA

View Full Version : All disabled dates if disabledDates has no values.



neshta-virus
26 Oct 2012, 3:55 AM
I want to have all enabled dates in datepiker in range (minDate -> maxDate). minDate is the first day of the month, maxDate is the last date of the month. I have no any enabled dates out of the range.
In this case disabledDatesRE = "(?: )". That provide all disabled dates in my range.

mitchellsimoens
29 Oct 2012, 7:21 AM
Something like this?


new Ext.FormPanel({
renderTo : document.body,
items : [
{
xtype : 'datefield',
fieldLabel : 'Date',
minValue : new Date('01-01-2012'),
maxValue : new Date()
}
]
});