raj_plays
22 Mar 2014, 3:26 AM
Hi,
My grid has a timefield.
When the editor kicks in I need the timefield to show the current hour.
Using value property did not work.
{
header: "Time",
width: 80,
dataIndex: 'time',
sortable: true,
editor: {
xtype: 'timefield', // rules about editing
allowBlank: false,
minValue: '12:00 AM',
maxValue: '11:00 PM',
increment: 60,
format: 'g:i A',
value: Ext.util.Format.date(new Date(), 'g:00 A'),
style: {
float: 'left'
}
},
align: 'left'
}
Please help.
My grid has a timefield.
When the editor kicks in I need the timefield to show the current hour.
Using value property did not work.
{
header: "Time",
width: 80,
dataIndex: 'time',
sortable: true,
editor: {
xtype: 'timefield', // rules about editing
allowBlank: false,
minValue: '12:00 AM',
maxValue: '11:00 PM',
increment: 60,
format: 'g:i A',
value: Ext.util.Format.date(new Date(), 'g:00 A'),
style: {
float: 'left'
}
},
align: 'left'
}
Please help.