PDA

View Full Version : DateField Validation Problem



Anup Rana
2 Dec 2010, 3:02 AM
I am using two datefield for startdate and enddate.I am using daterange for validating the datefield.It is working fine.
But how can i remove validated dates again.I want to remove the disabled days from the datefield.Can anyone help me out ??

Screamy
2 Dec 2010, 5:49 AM
Ext.getCmp('mydate').setMinValue(null);
Ext.getCmp('mydate').setMaxValue(null);
Also, if you used the disabledDays attribute:



Ext.getCmp('mydate').setDisabledDays([])

Anup Rana
3 Jan 2011, 9:42 PM
I had used the below code but still it is not working accordingly.

Ext.getCmp('mydate').setMinValue(null);
Ext.getCmp('mydate').setMaxValue(null);