Cannot change combobox selection when editable == false
I have a combobox that looks alot like this:
Code:
var fldCombo =
{
xtype: 'combo',
id: 'combobox_id',
hiddenName: 'combobox_value',
valueField: 'id',
autoWidth: true,
mode: 'local',
editable: false,
typeAhead: false,
fieldLabel: 'My Combobox Field',
store: json_store,
displayField: 'name'
};
Since it isn't editable, once a value has been selected, you can never change it! Even though typeAhead is set to false, the drop down only shows the selected value when the combo box is clicked.
I have created a work around by setting a listener to clear the box when it's clicked, but it's a really ugly thing to have to do.
Am I missing something?