JTM
16 Apr 2007, 6:54 AM
When setting a maxValue in a DateField object, the invalid dates are not disabled in the DatePicker object
new Ext.form.DateField({
fieldLabel: 'Select Date',
name: 'myDate',
maxValue : new Date(),
maxText : 'nothing in the future',
})
In the above example, any thing in the future will fail validation, but future dates are still allowed to be selected in the DatePicker.
new Ext.form.DateField({
fieldLabel: 'Select Date',
name: 'myDate',
maxValue : new Date(),
maxText : 'nothing in the future',
})
In the above example, any thing in the future will fail validation, but future dates are still allowed to be selected in the DatePicker.