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