1,解决datagrid-filter在easyui 1.4.5版本下会出现错位的情况:
datagrid-filter.js中找到resizeFilter函数,this.filter.resize(this, col.width - btn._outerWidth());改为this.filter.resize(this, col.width - btn._outerWidth()-1);
2,改善中文输入的响应:
3,隐藏字段不产生过滤器:
修改createFilter(frozen)函数:
function createFilter(frozen){
var dc = state.dc;
var fields = $(target).datagrid('getColumnFields', frozen);
if (frozen && opts.rownumbers){
fields.unshift('_');
}
var table = (frozen?dc.header1:dc.header2).find('table.datagrid-htable');
table.find('tr').each(function(){
$(this).height($(this).height());
});
// clear the old filter component
table.find('input.datagrid-f