Forum /
Ext JS 1.x - Unsupported /
Ext 1.x: Bugs /
Ext JS Premium Member
[CLOSED] DateField maxValue doesn't disable dates
[CLOSED] DateField maxValue doesn't disable dates
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.
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
[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
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
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us