I am using kendo UI Grid view.
The data is
subNodesArray = "one", "two", "three", "four", "five", "[15] OTU2-XP(59.79)(55.75) -B", "[16] GE-XPE(57.36)(*)-B*"]
var grids = $('#alarmsGrid').data('kendoGrid');
for(var i=0; i<subNodesArray.length;i++){
console.log(subNodesArray[i])
grids.dataSource.filter({
"logic":"or",
"filters":[
{ field: "sourceId", operator: "eq", value: subNodesArray[i] },
]
});
}
Here filtering is not working for me.
var subNodesArray = ["one", "two", "three", "four", "five", "[15] OTU2-XP(59.79)(55.75) -B", "[16] GE-XPE(57.36)(*)-B*"];
var filters = [];
for(var i=0; i<subNodesArray.length;i++){
filters.push({ field: "sourceId", operator: "eq", value: subNodesArray[i] });
}
$('#alarmsGrid').data('kendoGrid').dataSource.filter({
"logic":"or",
"filters":filters
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.