extjs4.2 - Extjs Grid Panel Filter - Clear filters only in one column -
this question (extjs gridfilter: how clearfilter without reloading store?) shows how clear filters on entire grid.
is there way clear filters in specific column? example, if have column list filter has 20 options , select 8 of them, i'd button uncheck of those, leave other filters i've selected remain in tact.
the 'size' column on demo example of filtering looks like: http://dev.sencha.com/deploy/ext-4.0.0/examples/grid-filtering/grid-filter-local.html
you can setactive
method of filter.
and here's how can reference filter:
// filtersfeature adds filters property grid bound grid.filters.getfilter('size').setactive(false)
edit: how uncheck boxes
var filter = grid.filters.getfilter('size'); filter.menu.items.each(function(checkbox) { // second argument suppress check event in order prevent // unexpected behaviour, filter reenabling , trying // update store several times in row checkbox.setchecked(false, true); });
Comments
Post a Comment