ai.aiAssistantWindow.close

Triggered when a AI Assistant Window is closed either by the user or through the close() method.

Event Data

e.userTriggered Boolean

Indicates whether the close action was triggered by the user either by clicking the Close button or by pressing Esc. When the close method was called, this field is false.

e.preventDefault Function

If invoked prevents the Window from closing.

Example - subscribing to the close event

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
   columns: [{ field: "name" }],
   dataSource: [{ name: "Jane Doe" }],
   toolbar: ["aiAssistant"],
   ai: {
     aiAssistantWindow: {
       close: () => console.log("AI Assistant Window closed!")
     },
     service: "https://demos.telerik.com/service/v2/ai/grid/smart-state",
   }
});
</script>
In this article
ai.aiAssistantWindow.close
Not finding the help you need?
Contact Support