I have an array like
var cars = new Array('audi','benz','citron','nissan','alto');
I want to add this data to arraystore as below
var myStore = new Ext.data.ArrayStore({ data : cars , fields : ['names'] });
Turn on binding this array to combos
var myCombo = new Ext.form.ComboBox({ store: myStore , displayField: 'name', valueField: 'name', typeAhead: true, mode: 'local', forceSelection: true, triggerAction: 'all', emptyText: 'Select a state...', selectOnFocus: true, });
The component shows only the first letter of each word in the array as a, b, c, n, a
How can I use combos correctly as the arry that I use is populated programmatically and then attached to arraystore
source share