I'm trying to filter a data source with the data bound to a remote source as per the Grid/Remote-data.html sample.
I've made some mods and nothing seems to happen. I'm trying to filters the results by ShipName.
<script>
$(document).ready(
function
() {
var
sharableDataSource =
new
kendo.data.DataSource({
type:
"odata"
,
transport: {
},
pageSize: 10,
serverFiltering:
true
,
serverPaging:
true
,
serverSorting:
true
,
});
$(
"#grid"
).kendoGrid({
dataSource: sharableDataSource,
height: 250,
scrollable:
true
,
sortable:
true
,
pageable:
true
,
columns: [
"OrderID"
,
"CustomerID"
,
"Freight"
,
"ShipName"
,
"ShipCity"
]
});
$(
"#apply"
).live(
"click"
,
function
() {
sharableDataSource.filter({ field:
"ShipCity"
, operation:
"eq"
, value:
"Reims"
});
});
});
</script>