New to Kendo UI for jQuery? Start a free 30-day trial

Sets the settings for the history queries in Semantic Search mode. Overrides the global smartBox.history setting for this mode.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    activeMode: "SemanticSearch",
    semanticSearchSettings: {
      enabled: true,
      history: {
        size: 8
      }
    }
  }
});
</script>

Specifies the maximum number of history queries that will be rendered in Semantic Search mode.

Default: 5

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    activeMode: "SemanticSearch",
    semanticSearchSettings: {
      enabled: true,
      history: {
        size: 10
      }
    }
  }
});
</script>

Specifies the date format that is used to display the history queries timestamps in Semantic Search mode.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    activeMode: "SemanticSearch",
    semanticSearchSettings: {
      enabled: true,
      history: {
        timestampFormat: "yyyy-MM-dd HH:mm"
      }
    }
  }
});
</script>