0
我有這個面板視圖。請檢查這個JSFiddle。所以我有一個cgi腳本,它返回json的組合框值和標籤,但不會在組合框中加載。我不確定爲什麼任何幫助將不勝感激。我只是希望每次單擊組合框下拉菜單時都會顯示選項。ExtJS Combobox未裝載Panal
var incidentjreader = new Ext.data.JsonReader({},['cid','list']);
var incident_store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'test.cgi'
}),
reader: incidentjreader
});
var incident_combo = new Ext.form.ComboBox({
store: incident_store,
mode: 'local',
id: 'incidentcombo',
typeAhead: false,
triggerAction: 'all',
width: 130,
fieldLabel: 'Incident',
valueField: 'cid',
displayField: 'list',
emptyText: 'Select Incident...',
});
incident_store.load();
請檢查JSFiddle獲取更多模式。