Kendo MVVM网格,过滤多复选框

时间:2018-09-25 19:37:33

标签: kendo-ui kendo-grid kendo-mvvm kendo-multiselect

我正在尝试执行以下操作:

https://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes

我正在用Kendo MVVM使用类似的东西:

<div id="grid"></div>
        <div class="box wide">
            <div data-role="grid"
                 data-filterable="{ mode: 'row' , cell: { showOperators: false, operator: 'contains' } }"
                 data-sortable="true"
                 data-columns="[
                    { 'field': 'TaskId', 'title': 'Actions', 'width': 100, filterable: false, template: viewModel.GenerateEditTemplate, sortable: false },
                    { 'field': 'IsCompleted', 'title': 'Completed', 'type' : 'boolean', 'width': 125, filterable: { messages: { isFalse: 'No', isTrue: 'Yes'  } } },
                    { 'field': 'Title', 'title': 'Title', 'width': 250, 'type' : 'string', filterable: { multi: true, dataSource: [{ Title: 'title1' }, { Title: 'title2' }] } },
                    { 'field': 'Hours', 'title': 'Estimated Hours', 'width': 110, 'type' : 'number', filterable: { cell: { showOperators: false, operator: 'contains' } } },
                    { 'field': 'CreatedBy', 'title': 'Created By', 'width': 150, filterable: { cell: { showOperators: false, operator: 'contains', template: viewModel.UserFilter  } } }
                 ]"
                 data-bind="source: TaskDataSource, events: { dataBound: OnDataBound }">
            </div>

        </div>

此后,标题中显示的唯一过滤器是允许我过滤列的输入,但不能过滤给定数据源的预期下拉列表。

有人知道KendoMVVM是否存在限制,不允许我在过滤器中使用多选项,但可以在该KendoGrid配置上使用?

非常感谢

0 个答案:

没有答案
相关问题