Kendo Grid Custom Filter-Operators

时间:2017-12-26 12:39:21

标签: angular filter kendo-ui kendo-grid

我试图从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>

但是不是空运算符产生错误。它给了我这个错误:enter image description here 有什么我错过的吗?帮助我。

0 个答案:

没有答案
相关问题