I have a grid with a TimeField editor. The values are in the following format:
06:00:00 (hh:mm:ss)
Right now everything is fine, except my renderer function doesn't detect the value a a validad Date:
text: 'InTime',
dataIndex: 'InTime',
editor: {
xtype: 'timefield',
format: 'H:i',
altFormats: 'H:i',
selectOnFocus: true,
minValue: '12:00 AM',
increment: 60,
maxValue: '11:00 PM'
},
renderer: function (value, metaData, record, row, col, store, gridView) {
alert(value);
return Ext.isDate(value) ? Ext.Date.format(value, 'H:i') : value;
}
When it checks Ext.isDate
I get false so that's why afeter selecting a value from timefield is not well formatted.
This is my grid cell image, the first cell is original before I change its value, the second one is the value that it gets after I select from TimeField
Any clue?