相关疑难解决方法(0)

如何修改字符串过滤器中输入的值

我的网格中有3列的字符串过滤器.这工作正常.在第三列,其dataindex是abc我想修改输入的值.

例如,如果我按0然后它过滤了所有具有0的数据.我想按'否'而不是0来过滤.同样,我想使用"是"而不是1来过滤数据1.

我的代码用于创建过滤器.

this.filters = new Ext.ux.grid.GridFilters({
    filters: this.filter,
    local: true,
    autoReload: false,
});
this.features = [this.filters];
this.plugins = [this.filters];
Run Code Online (Sandbox Code Playgroud)

插入过滤器的代码.

gridEl.filter.push({
    type: header.getAttribute("FILTER"),
    dataIndex: header.getAttribute("DATAINDEX"),
    encode: false,
    metaID: header.getAttribute("M"),
});
Run Code Online (Sandbox Code Playgroud)

感谢帮助.

javascript string extjs filter extjs3

28
推荐指数
1
解决办法
702
查看次数

Extjs 4网格过滤

这正是我正在寻找的http://www.developerextensions.com/index.php/extjs-filter-row但我找不到适合extjs 4的版本

我很可能创建了一个假代码,因为我在extjs中是noobie所以你能帮我解决这个或类似的扩展如何实现它并让它工作?

非常感谢你提前.

grid plugins extjs filter

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

extjs ×2

filter ×2

extjs3 ×1

grid ×1

javascript ×1

plugins ×1

string ×1