如何使用运算符“in”过滤剑道数据源?例子:
var original_data = [
{"group": [1, 2], "name": "Coca Cola"},
{"group": [1, 3], "name": "Pizza"}
];
function filter_articles(original_data, group) {
return new kendo.data.DataSource({
data: original_data,
filter: { field: 'group', operator: 'in', value: parseInt(group) }
});
}