【发布时间】:2015-08-01 18:58:38
【问题描述】:
我有一个网格,其中有一列用于组合框。我需要根据下面的记录过滤掉组合框的值:
id | name | options
======================================
1 | string | combobox(1,2,3)
2 | string | combobox(1,2,3,4,5)
3 | string | combobox(1,2,3)
1 | string | combobox(1,2,3)
所以最终我需要基于id 列的选项值。以下是我的 extjs 网格列配置。
columns: [{
header: 'id',
dataIndex: 'id',
id: 'id',
hidden: true
},{
header: 'Name',
dataIndex: 'name',
id: 'name',
menuDisabled: true,
flex : 1
},{
header: 'options',
dataIndex: 'options',
id: 'options',
menuDisabled: true,
flex : 1,
editor : {
xtype : 'combo',
store: optionStore,
valueField: 'id',
displayField: 'name',
triggerAction: 'all',
mode : 'local',
disabled: true,
listners: {
expand: this.filterFunc(this)
}
},
renderer: this.columnRenderer
}]
如何在没有 ExtJS 编辑器网格中的不同行的情况下过滤存储。
P.S - 我使用的是 extjs 3.4 版本
【问题讨论】:
标签: extjs combobox grid extjs3