我在我的网格中为3列设置了一个字符串过滤器,目前它能够正常工作。但是在第三列,其dataindex为abc
的列中,我希望修改输入的值。
例如,如果我按0,则会过滤出所有包含0的数据。我想用'No'代替0来进行过滤。同样地,我想用'Yes'代替1来过滤数据中的1。
以下是我创建过滤器的代码。
this.filters = new Ext.ux.grid.GridFilters({
filters: this.filter,
local: true,
autoReload: false,
});
this.features = [this.filters];
this.plugins = [this.filters];
插入过滤器的代码。
gridEl.filter.push({
type: header.getAttribute("FILTER"),
dataIndex: header.getAttribute("DATAINDEX"),
encode: false,
metaID: header.getAttribute("M"),
});
感谢您的帮助。