smartBox.semanticSearchSettings.delayNumber(default: 300)
Determines the delay in milliseconds between the user typing a new search value and the component emitting the semanticSearch event.
Example - set semantic search delay
<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,
delay: 500
}
}
});
</script>