Hello,
I get data from ajax call,i have two fields which are Boolean and want to apply the filter on these two fields:
$.ajax({
dataType: "json",
type: "POST",
url: "@Url.Action("fnction", "Dashbrd")",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ "regionalManager": dtDrpVals.drpValue, "dtFrom": dtDrpVals.fromDate}),
success: function (result) {
var dataSource = new kendo.data.DataSource({
data:result,
filter:[{
"logic": "and",
"filters": [{
"field": "m_grid",
"operator": "eq",
"value": false},
{"field": "crew_present",
"operator": "eq",
"value": false}]},]
});
the result has 40 records,if the filter i set works,must give me 10 records