A
Just give appropriate weight to the character of your combobox. B value shall be the value specified in value Field, as suchvar states = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
{"abbr":"AL", "name":"Alabama"},
{"abbr":"AK", "name":"Alaska"},
{"abbr":"AZ", "name":"Arizona"},
//...
//...
//...
//...
//...
//...
{"abbr":"testValue", "name":"it's work!"}
]
});
Ext.create('Ext.form.ComboBox', {
fieldLabel: 'Choose State',
store: states,
queryMode: 'local',
displayField: 'name',
valueField: 'abbr',
value: 'testValue',
renderTo: Ext.getBody()
});