Extjs 升级我的组合框
关于使用ExtJS combobox搜索数据的一个问题。 现在一切正常,但当我在combobox中写下一个名字时,我必须在底部的页面工具栏中按refresh来获取我要查找的数据。如何使它在我写MAR之类的东西时自动刷新Extjs 升级我的组合框,extjs,Extjs,关于使用ExtJS combobox搜索数据的一个问题。 现在一切正常,但当我在combobox中写下一个名字时,我必须在底部的页面工具栏中按refresh来获取我要查找的数据。如何使它在我写MAR之类的东西时自动刷新 { xtype: 'combobox', queryMode: 'local', valueField: 'id', field
{
xtype: 'combobox',
queryMode: 'local',
valueField: 'id',
fieldLabel: 'Book:',
name: 'book_fk',
typeAhead: false,
hidenTrigger: true,
hidenLabel: true,
pageSize: 10,
width: 400,
padding: 5,
store: Ext.create('Ext.data.Store',
{
fields: ['id','book','name_author'],
autoLoad: true,
pageSize: 10,
proxy:
{
type: 'ajax',
url: 'book/load',
reader:
{
type: 'json',
root: 'data',
totalProperty: 'total'
}
}
}),
listConfig:
{
loadingText: 'Searching...',
emptyText: 'No matching posts found.',
getInnerTpl: function()
{
return '<a class="search-item" href="book/load?t={topicId}&p={id}"></a>' +
'<span>{book}</span> {name_author}'
'{excerpt}'; //+
//'</a>';
}
},
displayTpl: Ext.create('Ext.XTemplate',
'<tpl for=".">',
'{book} - {name_author}',
'</tpl>'
)
},
尝试将组合框的设置为远程