Extjs 3.2网格过滤器不工作
我是extjs新手,我在网格过滤器上使用extjs3.2。过滤器在每个标题下都正确显示,但它不是过滤器Extjs 3.2网格过滤器不工作,extjs,extjs3,Extjs,Extjs3,我是extjs新手,我在网格过滤器上使用extjs3.2。过滤器在每个标题下都正确显示,但它不是过滤器 var store = new Ext.data.Store({ id : 'user', autoDestroy: true, url: 'site/view.action', proxy : proxy,
var store = new Ext.data.Store({
id : 'user',
autoDestroy: true,
url: 'site/view.action',
proxy : proxy,
reader : reader,
writer : writer, // <-- plug a DataWriter into the store
// just as you would a Reader
autoSave : false,
// <-- false would delay executing create, update, destroy
// requests until specifically told to do so with some [save]
// buton.
});
这是我的GridPanel代码
var grid = new Ext.grid.GridPanel({
store : store,
disableSelection: true,
id : "documentsGrid",
columns : [{
header : "SAP ID",
width : 120,
sortable : true,
dataIndex : 'sapid',
filter: {
//type: 'numeric' // specify type here or in store fields config
},
filterable: true,
renderer: function (value, metaData, record, rowIndex, colIndex, store) {
return getToolTip(value, metaData, record, rowIndex, colIndex, store);
},
editor : {
xtype : 'textfield',
allowBlank : true
}
},
plugins: [editor,filters],
怎么了?我不明白
请帮忙
谢谢,因为您指定了筛选器不是本地的,这意味着您必须进行服务器端筛选。如果只想在客户端进行筛选,请指定local:true 还要确保过滤器中使用的数据索引引用了存储中的字段,并且没有遗漏任何内容
var grid = new Ext.grid.GridPanel({
store : store,
disableSelection: true,
id : "documentsGrid",
columns : [{
header : "SAP ID",
width : 120,
sortable : true,
dataIndex : 'sapid',
filter: {
//type: 'numeric' // specify type here or in store fields config
},
filterable: true,
renderer: function (value, metaData, record, rowIndex, colIndex, store) {
return getToolTip(value, metaData, record, rowIndex, colIndex, store);
},
editor : {
xtype : 'textfield',
allowBlank : true
}
},
plugins: [editor,filters],