你好,我想做的搜索結果在combobox.It的工作,但我也需要在所有頁面搜索搜索僅在本頁面我使用分頁與搜索不是當前頁面只有搜索在組合框中與分頁ExtJS的
任何建議
{
xtype: 'combo',
fieldLabel: 'Organization Id',
name: 'company_id',
displayField:'name_en',
valueField:'id',
store: Ext.create('UserApp.store.PicklistList', {
autoLoad: true,
fields: ['id', 'name_en', 'name_se'],
proxy:{
type:'ajax',
api: {
read:'picklist/listitems'
},
reader: {
type: 'json',
root: 'root',
successProperty: 'success'
},
extraParams:{
table :'table_name'
}
}
}),
editable: true,
autoSelect: false,
selectOnFocus:true,
typeAhead:true,
minChars:2,
queryMode: 'local',
mode: 'local',
pageSize: 25,
width:370,
allowOnlyWhitespace: false,
regex: /[a-zA-Z0-9]+/, // avoid to empty data only
})
如果您可以發佈您的代碼,診斷將會容易得多。你使用遠程或本地商店? – kevhender
添加了代碼我正在使用遠程存儲和querymode它是本地的 – DeveloperSystem
如何定義this.store?在initComponent中爲 – kevhender