0
我想用我的網格與組合框排序,我希望當我選擇組合框上的值時,網格的內容改變,例如type
任何人都可以幫助我嗎?感謝Extjs 6 - 與組合框過濾網格
這個我的代碼片段:
Ext.create('Ext.grid.Panel', {
height: 400,
title: 'Simpsons',
store: pagingStore,
columns: [{
text: 'Name',
dataIndex: 'name'
}, {
text: 'Email',
dataIndex: 'email'
}, {
text: 'Phone',
dataIndex: 'phone'
},
{
text: 'Type',
dataIndex: 'type'
}],
bbar: {
xtype: 'pagingtoolbar',
store: pagingStore,
displayInfo: true,
items: [
'-', {
xtype: 'combo',
fieldLabel: 'List account',
labelAlign: 'right',
store: storeCombo,
displayField: 'name'
}]
},
renderTo: Ext.getBody()
});
您希望您的網格上的類型列上的選擇進行排序組合框對嗎? – UDID
我想要這樣的:> https://drive.google.com/open?id=0B4va_pdrT1cceHB3N2dySDBpTVE – Joy
客戶帳戶選擇後會發生什麼。 – UDID