我的过滤器是这样设置,定义的。。
Ext.menu.RangeMenu.prototype.icons = {
gt: 'Images/greater_then.png',
lt: 'Images/less_then.png',
eq: 'Images/equals.png'
};
Ext.grid.filter.StringFilter.prototype.icon = "Images/find.png";
try
{
Ext.grid. filter.BooleanFilter.prototype.displayText ={
yes:'是',
no:'否'
};
}
catch
{
throw;
}
Ext.grid.filter.DateFilter.prototype.displayText ={
before:"前",
after:"后",
on:"中"
};
var filters = new Ext.grid.GridFilters({
filters:[
{type: 'numeric', dataIndex: 'id'},
{type: 'string', dataIndex: 'userid'},
{type: 'string', dataIndex: 'username'},
{type: 'numeric', dataIndex: 'userstate'},
{type: 'numeric', dataIndex: 'roleid'}
]});
然后在 var usergrid = new Ext.grid.GridPanel({})中的plugins上加上filters,
可是在用的时候,点了过滤,却什么反应都没有,是不是还漏了什么设置呢,高手们快帮帮忙啊!用的asp.net平台