本帖最后由 lylcheyun1 于 2013-04-11 20:54:04 编辑

解决方案 »

  1.   

    我不知道对你陈述的理解有没有错误,在extjs3.0+与4.0+的gridfilter例子里都能在一个grid里面同时过滤任何你想要过滤的column里的数据.
    grid的过滤功能是依赖ux包里的filter组件实现的,你想要过滤哪个column可以在你实例化的filter组件里进行设置.4.0v代码,支持2.0v+以上版本var filters = new Ext.ux.grid.GridFilters({
            // encode and local configuration options defined previously for easier reuse
            encode: encode, // json encode the filter query
            local: local,   // defaults to false (remote filtering)
            //设置你需要过滤的column       
            filters: [{
                type: 'numeric',
                dataIndex: 'id'
            }, {
                type: 'string',
                dataIndex: 'company',
                disabled: true
            }, {
                type: 'numeric',
                dataIndex: 'price'
            }, {
                type: 'date',
                dataIndex: 'date'
            }, {
                type: 'list',
                dataIndex: 'size',
                options: ['small', 'medium', 'large', 'extra large'],
                phpMode: true
            }, {
                type: 'boolean',
                dataIndex: 'visible'
            }]
        });