ExtJs GridFilter 操作
2021-02-01 11:17
标签:fun ref arp ken lse ati number list 操作 ExtJs GridFilter 操作 标签:fun ref arp ken lse ati number list 操作 原文地址:https://www.cnblogs.com/wkk2020/p/13180607.html表格列小箭头下拉下来的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
FilterHeader 操作见:https://examples2.ext.net/#/GridPanel/FilterHeader/Overview/
文章标题:ExtJs GridFilter 操作
文章链接:http://soscw.com/index.php/essay/49472.html