View Full Version : combobox usage

29 Jul 2007, 10:55 PM
I want to create a combobox using the example code from the documentation :

// simple array store
var store = new Ext.data.SimpleStore({
fields: ['abbr', 'state'],
data : exampleData // Format data that i try to find
var combo = new Ext.form.ComboBox({
store: store,
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',

Is there anyone that know the format data for "exampleData" variable or the data format that should store in the config data for Ext.data.SimpleStore.

Then why the trigger image is closed by some image that requested from http://www.extjs.com/s.gif, so in my local computer the combobox trigger is had a bad look.


30 Jul 2007, 9:13 AM
1. Please read the code you're using. It includes a number of js files, one of which defines the data (states.js)

2. Please search and/or read the FAQ before posting - the gif issue has been covered repeatedly.

30 Jul 2007, 5:22 PM
Thank you very much, sorry i miss that part.