PDA

View Full Version : cant edit date field with current date in editable grid



sthanar
5 Dec 2013, 4:08 AM
Hi,

I have editable grid, which has date field as editable. we can edit the date by current date or future date. Past date should not be allowed. So that i set 'minValue' property as new Date(). It showing date correctly from current date on wards and past date are disabled. But when i choose today date, it is not stored and date field highlighted in red color. But i could choose future date.

i want to edit the date field by giving today date. Please help.

{
xtype:'datecolumn',
header: "Reschedule Date",
dataIndex: 'scheduleddate',
width: 100,
format:'m/d/Y H:i:s',
sortable: true,
editor : {
xtype : 'datefield',
format: 'm/d/Y H:i:s',
submitFormat:'m/d/Y H:i:s',
minValue: new Date(),
allowBlank : false
}
}

Thanks,
Senthil

slemmon
13 Jan 2014, 9:45 AM
It seems to work ok for me:

2k8