fields.defaultValue Object

A value which will be initially set as a filter value when an expression item for the specific field is created.

Example - set the default value

<div id="filter"></div>
<br /><br />
<script>
  var data = [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
    ];

  var dataSource = new kendo.data.DataSource({
    data: data
  });

  $("#filter").kendoFilter({
    dataSource: dataSource,
    expressionPreview: true,
    fields: [
      { name: "age", type:"number", defaultValue: 31 },
      { name: "name", type:"string", defaultValue: "Rick" }
    ]
  });
</script>
In this article
Not finding the help you need? Improve this article