我试图从angular2项目中的kendo-grid中删除一些过滤器运算符。作为一项规则,我必须指定我需要的运算符,以避免不必要的运算符,所以我这样做我的代码:
<kendo-grid-column field="ProductName" title="Product Name">
<ng-template kendoGridFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
<kendo-grid-string-filter-menu
[column]="column"
[filter]="filter"
[filterService]="filterService"
operator="startswith">
<kendo-filter-startswith-operator></kendo-filter-startswith-operator>
<kendo-filter-isnotempty-operator></kendo-filter-isnotempty-operator>
</kendo-grid-string-filter-menu>
</ng-template>
</kendo-grid-column>