messages.ai.invalidSelectionString
Defines the text to be displayed when an invalid selection is made for AI operations. Used primarily for localization.
Example - change the invalid selection message for ai features
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" },
{ command: "destroy" }
],
dataSource: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
],
toolbar: ["aiAssistant"],
filterable: true,
selectable: "multiple, cell",
ai: {
service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
},
messages: {
ai: {
invalidSelection: "Please select valid data for this AI operation."
}
},
height: 550
});
</script>
In this article