field String
Specifies the field to filter on
Example - set the field the filter will be applied on
<div id="filter-menu">(age filter)</div>
<br /><br />
<div id="grid"></div>
<script>
var data = [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
];
var dataSource = new kendo.data.DataSource({
data: data
});
$("#filter-menu").kendoFilterMenu({
dataSource: dataSource,
field: "age"
});
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: dataSource
});
</script>