获取 kendo angular 网格中的所有过滤器

Getting all filters in kendo angular grid

如何获取 kendo angular 网格中使用的所有过滤器的列表? https://www.telerik.com/kendo-angular-ui/components/grid/api/GridComponent/

我可以像这样访问 angular 组件中的网格

@ViewChild(GridComponent) private grid;

我设置了远程数据

this.dataService.getItems().subscribe(
    data => {
      this.grid.data = data;
    }
)

我必须调用一个类似于此的 API。我尝试使用 filterChange 事件 - 它工作正常,直到我清除过滤器,事件触发但没有告诉哪个事件被触发。

.../api/items?filter1=value&filter2=value

我错过了下面一行,这导致了意外行为。它没有包含有关所有过滤器的信息,而是仅显示有关已更改过滤器的信息。

<kendo-grid
        ....
        [filter]="filter"
        ....
>

工作演示 - app.component.ts 有相关代码。
更改过滤器应该将所有过滤器记录到控制台。 https://embed.plnkr.co/Ymz4CSFVmXirnxCFlAeE/