I need to clear (blank out) all filters in my tree grid.
This is done easily for plain greed but same code does not work for tree grid and I can’t find a simple way of doing that.
Here is the code that works for plain grid:
for (var i=0; i < grid.filters.length; i++) {
var filter = grid.getFilterElement(this.grid.filters[i][1]);
if (filter != null) filter.value = '';
}
For TreeGrid, both grid.filters and grid.getFilterElement(n) don’t work.