如何在Kendo ui Grid中过滤带有数组的字段?

时间:2019-05-15 10:01:27

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

在Kendo ui网格中,我使用多选字段。这意味着一个字段中可以有多个值。因此,它是一个数组,其中每个条目都是一个对象。 现在,我想使用多选数据在字段中进行过滤。

对于DropDown(每个字段仅包含一个元素),过滤有效。

以下是带有DropDown和MultiSelect字段的代码示例:https://dojo.telerik.com/oZexAsOW/2

 currentFilter.push({field:"category.text", operator:operator, value:value})

那行得通,但

currentFilter.push({field:"crm_multiselect[0].text", operator:operator, value:value});
currentFilter.push({field:"crm_multiselect[1].text", operator:operator, value:value});
...
currentFilter.push({field:"crm_multiselect[n].text", operator:operator, value:value});

不起作用,因为数组在每个字段中的长度都不相同。

我的问题:如何在Kendo ui Grid中过滤带有数组的字段?

0 个答案:

没有答案
相关问题