ai.aiAssistant.toolbarItems.clickFunction

The click event handler of the toolbar item.

Example

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      toolbarItems: [
        {
          type: "button",
          text: "Custom Action",
          click: function(e) {
            alert("Custom toolbar item clicked!");
          }
        }
      ]
    }
  }
});
</script>