87,997
社区成员




{
header: 'Available',
dataIndex: 'availDate',
width: 95,
renderer: formatDate,
editor: new fm.DateField({
format: 'm/d/y',
minValue: '01/01/06',
disabledDays: [0, 6],
disabledDaysText: 'Plants are not available on the weekends',
listeners: {
focus: function (th) {
var begin = th.gridEditor.record.data.availDate;
th.setMinValue(begin);
}
}
})
}
editor : new Ext.form.DateField(
{
format : 'Y-m-d',
editable : false,
listeners : {
focus : function(th){
var begin = th.gridEditor.record.data.periodBeginDate;
if (begin instanceof Date || begin.length>0) {
if(begin.length>0){
begin=new Date(begin);
}
th.setMinValue(begin);//只要把这行注释掉就不会卡死
}
},