function filterAutoCompleteDataSource(e) {
var gridFilter = e.sender.dataSource.filter();
e.sender.element.find(".k-autocomplete input").data("kendoAutoComplete").dataSource.filter(gridFilter);
}
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource : {
type : "odata",
transport : {
read : "//demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"
},
schema : {
model : {
fields : {
OrderID : {
type : "number"
},
Freight : {
type : "number"
},
ShipName : {
type : "string"
},
OrderDate : {
type : "date"
},
ShipCity : {
type : "string"
}
}
}
},
pageSize : 20,
serverPaging : true,
serverFiltering : true,
},
dataBound : filterAutoCompleteDataSource,
height : 550,
filterable : {
mode : "row"
},
pageable : true,
columns :
[{
field : "OrderID",
width : 225,
title: "OrderID",
filterable : {
cell : {
showOperators : false
}
}
}, {
field : "ShipName",
width : 500,
title : "Ship Name",
filterable : {
cell : {
operator : "contains"
}
}
}, {
field : "Freight",
width : 255,
filterable : {
cell : {
operator : "gte"
}
}
}, {
field : "OrderDate",
title : "Order Date",
format : "{0:MM/dd/yyyy}"
}
]
});
});
<!DOCTYPE html>
<html>
<head>
<base href="https://demos.telerik.com/kendo-ui/autocomplete/index">
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
<title></title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.3.911/styles/kendo.common-material.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.3.911/styles/kendo.material.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.3.911/styles/kendo.material.mobile.min.css" />
<script src="https://kendo.cdn.telerik.com/2018.3.911/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2018.3.911/js/kendo.all.min.js"></script>
</head>
<body>
<div id="grid"></div>
</body>
</html>