svenna
19 Jun 2012, 4:25 AM
Hi,
I have some dates in a store that I need to format in a combobox.
I can do this in the list items, but how can I format the display value on the selected item?
36348
{
xtype: 'combobox',
disabled: true,
itemId: 'Pulje',
width: 226,
fieldLabel: 'Pulje',
labelAlign: 'top',
displayField: 'start',
forceSelection: true,
store: 'Puljer',
valueField: 'Id',
lastQuery: '',
listConfig: {
getInnerTpl: function() {
return '<div class="search-item">{start:date("Y-m-d H:i")}</div>';
}
},
listeners: {
select: {
fn: me.onPuljeSelect,
scope: me
}
}
}
I have some dates in a store that I need to format in a combobox.
I can do this in the list items, but how can I format the display value on the selected item?
36348
{
xtype: 'combobox',
disabled: true,
itemId: 'Pulje',
width: 226,
fieldLabel: 'Pulje',
labelAlign: 'top',
displayField: 'start',
forceSelection: true,
store: 'Puljer',
valueField: 'Id',
lastQuery: '',
listConfig: {
getInnerTpl: function() {
return '<div class="search-item">{start:date("Y-m-d H:i")}</div>';
}
},
listeners: {
select: {
fn: me.onPuljeSelect,
scope: me
}
}
}