创建store
var store = [];
创建comboBox
var combo = new Ext.form.ComboBox({ store: store, fieldLabel:'下拉框', //typeAhead: true, mode: 'local', id:'id', name: 'name', anchor:'100%', editable :true, triggerAction: 'all', selectOnFocus:true })
DWR调用获得store,并更新combo的value
DWREngine.setAsync(false); dwrClass.function(parameters,function(data){ store=data; }); combo.store.loadData(store);//从传入的数据块中装载数据,并触发load事件。 DWREngine.setAsync(false);