Ag-grid-结合自己的过滤器和柱式过滤器

时间:2019-01-07 08:02:57

标签: angular filter ag-grid

我将以下过滤器应用于我的ag-grid:

   var typeFilterComponent = this.gridOptions.api.getFilterInstance("type");
    typeFilterComponent.setModel({
        type: "lessThan",
        filter: 3
    });
    this.filterModel = this.gridOptions.api.getFilterModel();
    this.gridOptions.api.onFilterChanged();

然后将我的过滤器应用于此行:

this.gridOptions.api.setFilterModel(this.filterModel);

但是,当用户从UI中获得另一个过滤器(例如字符串过滤器“包含”)时,应用自定义过滤器将按应用于列的字符串删除过滤器。 如何避免删除列过滤器?

0 个答案:

没有答案
相关问题