ExtJs GridFilter 操作
表格列小箭头下拉下来的GridFilter 筛选操作
grid.getFilterPlugin().clearFilters();
grid.getFilterPlugin().getFilter('dataindex').setValue("value"); //string filter
grid.getFilterPlugin().getFilter('dataindex').setValue(true); //bool filter
grid.getFilterPlugin().getFilter('dataindex').setValue({gt:2, lt:9, eq:5}); //numeric filter
grid.getFilterPlugin().getFilter('dataindex').setValue({before: new Date(2008,0,1), after:..., on:...}); //date filter
grid.getFilterPlugin().getFilter('dataindex').setValue(['item1', item2]); //list filter
grid.getFilterPlugin().getFilter('dataindex').setActive(false); //turn off filter
grid.
filterHeader.clearFilter();
Ext.encode(this.up('grid').filterHeader.getFilterValues());
loadFilter(this.up('grid').filterHeader);
var loadFilter = function (plugin) { plugin.setValue({ Id : ">5", Company: "!Inc.", Price: ">50<70", Visible: 1 }); };
FilterHeader 操作见:https://examples2.ext.net/#/GridPanel/FilterHeader/Overview/