Hello,
Currently I have a timefield implemented within a grid.
When I try to paste an item like '01:15' it fails. The combobox opens and selects the upper item from the list (doesn't filter). When I edit the pasted value (remove last 5 of 01:15), the filtering of the combobox goes well and I'm able to select the value.
Does somebody knows how I can fix this? Maybe something wrong with the first time the value is filtered within the list?
I used the following code to create the timefield (within the grid).
Code:
var cm = new Ext.grid.ColumnModel({
// specify any defaults for each column
defaults: {
sortable: true // columns are not sortable by default
},
columns: [
csm,
{
header: '<?php echo $this->translate('Day');?>',
dataIndex: 'dayw_id',
editor: comboDays,
renderer: Ext.util.Format.comboRenderer(comboDays)
}, {
header: '<?php echo $this->translate('Open from');?>',
dataIndex: 'from_time',
editor: new Ext.form.TimeField({
nullText: '<?php echo $this->translate('closed'); ?>',
id: 'open-from-field',
increment: 15,
format: 'H:i'
})
}, {
header: '<?php echo $this->translate('Open untill', true);?>',
dataIndex: 'to_time',
editor: new Ext.form.TimeField({
nullText: '<?php echo $this->translate('closed'); ?>',
increment: 15,
id: 'open-until-field',
format: 'H:i'
})
}
]
});
Hope somebody can help me out!
Ward