【问题标题】:ext js 4.2.0.633 - grid column header not showing filter optionsext js 4.2.0.633 - 网格列标题不显示过滤器选项
【发布时间】:2013-03-21 11:58:32
【问题描述】:

网格列标题中的过滤选项不适用于 ext js 4.2.0.633,但适用于 extjs-4.1.1

这是我正在使用的代码

Ext.define('Qreda.view.response.DndGrid', 
 extend : 'Qreda.view.BaseRemoteGrid',
 store : 'OptInOutConfigs',
 alias : 'widget.dndgrid',
 frame : true,

initComponent : function() {
this.columns = [{
    header : 'Keyword',
    dataIndex : 'keyword',
    renderer : function(value, metaData, record) {
        return value ? value.name : null;
    },
    filterable : true
    }, {
        header : 'trigger Keyword',
        dataIndex : 'triggerKeyword',
        filterable : true
    }, {
    header : 'Category',
    dataIndex : 'categoryId',
    filter : {
        type : 'list',
        store : Ext.getStore('CgCategories'),
        labelField : 'categoryName'
    }
    }];

    this.callParent();
    this.setTitle('MENU_DND_MANAGEMENT');
    this.on('beforerender', function(component, options) {
        Ext.getStore('CgCategories').load();
    }, this);
}

});

请有人帮我解决这个问题

【问题讨论】:

  • 请使用通用 extjs 标签标记您的 ext js 问题 - 除了版本标签

标签: extjs grid extjs4.2


【解决方案1】:

请使用与 ext js 4.2.0.633 一起提供的网格过滤器的 js 文件。它们可以在示例/ux/grid/filter 和示例/ux/grid/menu 和 ux/grid 文件夹中找到。

【讨论】:

    【解决方案2】:

    需要examples/ux/grid/filter并将其定义为一个特性:

    // ...
    features: [{
        ftype: 'filters'
    }]
    // ...
    

    【讨论】:

      【解决方案3】:

      柱状网格过滤器插件工作至 Ext JS 4.1 版本。

      它不适用于 ExtJS 4.2。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-10-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-11-08
        相关资源
        最近更新 更多