mainLogic String

Defines the value of the logical operator at the root level of the filter expression.

Example - set the main logic

<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,
    mainLogic: "or",
    fields: [
      { name: "age", type:"number", label: "Age" },
      { name: "name", type:"string", label: "Name" }
    ]
  });
</script>
In this article