PDA

View Full Version : [CLOSED] DateField maxValue doesn't disable dates



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.

max52
26 Mar 2008, 7:08 AM
When I set [FONT=Courier New] maxValue : new Date()like this, I get always an error.

I call a function for this and then it

mthad
7 Jul 2008, 11:30 AM
[quote=max52;143324]When I set maxValue : new Date()like this, I get always an error.

[FONT=Courier New]I call a function for this and then it

brian.moeskau
10 Jul 2008, 10:27 AM
I just verified the example in the first post and it works fine for me. If this is still an issue, please post a full test case and details per http://extjs.com/forum/showthread.php?t=8887