Using the following script to build a Filter and DataSource.
When I click the Apply button I would expect the Filter Property in the method to be populated. See screen print below
<script>
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
url: "/Home/Products_Read"
}
},
serverFiltering: true,
pageSize: 4,
schema: {
model: {
fields: {
ProductName: { type: "string" },
}
}
}
});
$("#filter").kendoFilter({
dataSource: dataSource,
expressionPreview: true,
applyButton: true,
fields: [
{ name: "ProductName", type: "string", label: "ProductName" },
],
expression: {
logic: "or",
filters: [
{ field: "ProductName", value: "Chai", operator: "contains" }
]
}
});
});
</script>