process
Executes the specified operations over the data items
Parameters
data Array
The data items collection
options Object
Accepts the same values as the DataSource query method.
Returns
Object
with total
and data
fields representing the result of all operations
Example - filtering a data collection
<script>
var data = [
{ name: "Pork", category: "Food", subcategory: "Meat" },
{ name: "Pepper", category: "Food", subcategory: "Vegetables" },
{ name: "Beef", category: "Food", subcategory: "Meat" }
];
var query = kendo.data.Query.process(data, {
filter: {
logic: "and",
filters: [{
field: "subcategory",
value: "Meat",
operator: "eq"
}]
}
});
// print the result
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(query.data);
</script>