extjs 数据过滤 本帖最后由 lylcheyun1 于 2013-04-11 20:54:04 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我不知道对你陈述的理解有没有错误,在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' }] }); 为什么用Jquery的.length获取到的数值不对呢? js对象的内部方法使用apply后,如何在方法内访问自身对象 一个很怪的问题:jquery在本地不能运行,在远程就可以??? 如何实现Extjs中关于htmlEditor只读(不能进行编辑)? 谁有没有左右滚屏的代码。。 有这样处理问题的嘛? 怎么在javascript中控制播放音乐 求一正则表达式 关于弹出窗口的问题 如何把这个input改为图片? 关于JS与控件参数传递的交互问题 Ext TabPanel
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'
}]
});