smartBox.activeModeString
The mode which will be initially selected when the SmartBox popup is opened. If not provided, defaults to the first enabled mode. The available modes are:
"Search"- Standard text-based search mode."SemanticSearch"- AI-powered semantic search mode."AIAssistant"- AI assistant mode for natural language queries.
Example - set the active 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: "AIAssistant",
aiAssistantSettings: {
enabled: true,
service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
}
}
});
</script>