smartBox.semanticSearchSettings.history.timestampFormatString
Specifies the date format that is used to display the history queries timestamps in Semantic Search mode.
Example - set semantic search history timestamp format
<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>