I have this combobox whith a simple dataStore
this.vetorCampos.push(['1','1']);
this.combo = new Ext.form.ComboBox({ 搜斧- extjs ComboBox联动下拉菜单示例:: ComboBox({ store: new Ext.data.SimpleStore( { fields: ["provinceId", " provinceName"], data: provinces }), listeners:{ select:function(combo, record, index){ http://www.searchfull.net/1192801.htmlHOME |
store: new Ext.data.SimpleStore({
fields: ['id','display'],
data: this.vetorCampos
}),
mode: 'local',
displayField: 'display',
width: 150,
triggerAction:'all',
editable: false
});
Combo.js:: @param {Ext.form.ComboBox} combo This combo box * @param {Ext.data. d.push([ value, o.text]); } this.store = new Ext.data.SimpleStore({ 'id': 0, fields: http://www.epi.org/CFIDE/scripts/ajax/ext/docs/output/Combo.jss.htmlHOME |
toolBar.add(this.combo);
this.vetorCampos.push(['2','2']);
My combobox show someting the first line, the line with 2,2 don't apear, where is the mistake?
This is an complete example of example of combobox dinamic
http://pastie.caboo.se/143741
you need to either reload the store, or add the record to the store instead of pushing to the array.
if you are not aware, the combobox itself has methods to add and remove items that are likely going to fit you needs much better.
try loadData(yourData);
i try these
this.comboboxStore.reload();
and they return this.proxy has no properties
i use a simplestore with no proxy :(
YES
this.comboboxStore.loadData(this.arrayColumn);
10x for the help, work perfectly =D>
I Am a Sinner – What About You?
Global Sourcing and Supplier Online by Dylan
|