您好,请参考;
- var filtercol = 'country,amount'.split(',')
- //设置过滤是conditon的
- var f = new wijmo.grid.filter.FlexGridFilter(s);
- //设置某列过滤
- f.filterColumns = filtercol;//列数组
- //所有过滤列的统一设定
- //f.defaultFilterType = wijmo.grid.filter.FilterType.Condition;
- //设置country列为值过滤
- var col = s.columns.getColumn('country'),
- cf = f.getColumnFilter(col);
- cf.filterType = wijmo.grid.filter.FilterType.Value;
- //设置amount列为条件过滤
- var col = s.columns.getColumn('amount'),
- cf = f.getColumnFilter(col);
- cf.filterType = wijmo.grid.filter.FilterType.Condition;
复制代码
希望能帮到您。 |