From 71f8377a2be62c93da29dae4306dcbdb69875e0d Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 14:58:53 +0400 Subject: [PATCH 01/17] Grids AI Assistant: Add API Descriptions Part 2 --- .../{ => aiAssistant}/aiAssistant.md | 3 +- .../aiAssistant/customizeResponseText.md | 145 ++++++++++++++++++ .../aiAssistant/customizeResponseTitle.md | 122 +++++++++++++++ .../DataGridCommandInfo.md | 15 ++ .../DataGridPredefinedCommandNames.md | 39 +++++ .../DataGridPredefinedCommands.md | 78 ++++++++++ .../SummaryCommandGroupItem.md | 23 +++ .../SummaryCommandTotalItem.md | 21 +++ .../15 grids/AIAssistant/chat.md | 5 +- .../AIAssistant/customizeResponseText.md | 137 ++++++++++++++++- .../AIAssistant/customizeResponseTitle.md | 113 +++++++++++++- .../15 grids/AIAssistant/popup.md | 2 + .../BasicFilterExprObj/BasicFilterExprObj.md | 21 +++ .../CombinedFilterExprObj.md | 17 ++ .../15 grids/CommandInfo/CommandInfo.md | 15 ++ .../CompositeKeyPair/CompositeKeyPair.md | 15 ++ .../15 grids/FilterExprObj/FilterExprObj.md | 16 ++ .../NegatedFilterExprObj.md | 15 ++ .../PredefinedCommandNames.md | 35 +++++ .../PredefinedCommands/PredefinedCommands.md | 67 ++++++++ .../15 grids}/ResponseStatus.md | 2 +- .../ResponseStatusTexts.md | 4 +- .../BasicFilterExprObj/BasicFilterExprObj.md | 12 -- .../CombinedFilterExprObj.md | 12 -- .../NewTopics/CommandInfo/CommandInfo.md | 12 -- .../CompositeKeyPair/CompositeKeyPair.md | 12 -- .../DataGridCommandInfo.md | 12 -- .../DataGridPredefinedCommandNames.md | 12 -- .../DataGridPredefinedCommands.md | 13 -- .../NewTopics/FilterExprObj/FilterExprObj.md | 12 -- .../NegatedFilterExprObj.md | 12 -- .../PredefinedCommandNames.md | 12 -- .../PredefinedCommands/PredefinedCommands.md | 12 -- .../SummaryCommandGroupItem.md | 13 -- .../SummaryCommandTotalItem.md | 13 -- images/DataGrid/icons/aiAssistantButton.png | Bin 0 -> 527 bytes includes/grids-toolbar.md | 5 + 37 files changed, 901 insertions(+), 173 deletions(-) rename api-reference/10 UI Components/dxDataGrid/1 Configuration/{ => aiAssistant}/aiAssistant.md (64%) create mode 100644 api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md create mode 100644 api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md create mode 100644 api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md create mode 100644 api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md create mode 100644 api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md create mode 100644 api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md create mode 100644 api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandTotalItem/SummaryCommandTotalItem.md create mode 100644 api-reference/40 Common Types/15 grids/BasicFilterExprObj/BasicFilterExprObj.md create mode 100644 api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md create mode 100644 api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md create mode 100644 api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md create mode 100644 api-reference/40 Common Types/15 grids/FilterExprObj/FilterExprObj.md create mode 100644 api-reference/40 Common Types/15 grids/NegatedFilterExprObj/NegatedFilterExprObj.md create mode 100644 api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md create mode 100644 api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md rename api-reference/{_hidden/Enums => 40 Common Types/15 grids}/ResponseStatus.md (85%) rename api-reference/{NewTopics => 40 Common Types/15 grids}/ResponseStatusTexts/ResponseStatusTexts.md (56%) delete mode 100644 api-reference/NewTopics/BasicFilterExprObj/BasicFilterExprObj.md delete mode 100644 api-reference/NewTopics/CombinedFilterExprObj/CombinedFilterExprObj.md delete mode 100644 api-reference/NewTopics/CommandInfo/CommandInfo.md delete mode 100644 api-reference/NewTopics/CompositeKeyPair/CompositeKeyPair.md delete mode 100644 api-reference/NewTopics/DataGridCommandInfo/DataGridCommandInfo.md delete mode 100644 api-reference/NewTopics/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md delete mode 100644 api-reference/NewTopics/DataGridPredefinedCommands/DataGridPredefinedCommands.md delete mode 100644 api-reference/NewTopics/FilterExprObj/FilterExprObj.md delete mode 100644 api-reference/NewTopics/NegatedFilterExprObj/NegatedFilterExprObj.md delete mode 100644 api-reference/NewTopics/PredefinedCommandNames/PredefinedCommandNames.md delete mode 100644 api-reference/NewTopics/PredefinedCommands/PredefinedCommands.md delete mode 100644 api-reference/NewTopics/SummaryCommandGroupItem/SummaryCommandGroupItem.md delete mode 100644 api-reference/NewTopics/SummaryCommandTotalItem/SummaryCommandTotalItem.md create mode 100644 images/DataGrid/icons/aiAssistantButton.png diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/aiAssistant.md similarity index 64% rename from api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant.md rename to api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/aiAssistant.md index c0eabebd48..206584b14e 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/aiAssistant.md @@ -1,10 +1,11 @@ --- id: dxDataGrid.Options.aiAssistant type: AIAssistant +inheritsType: AIAssistant --- --- ##### shortDescription - +Configures the {WidgetName} AI Assistant. --- \ No newline at end of file diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md new file mode 100644 index 0000000000..f56d8c1623 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -0,0 +1,145 @@ +--- +id: dxDataGrid.Options.aiAssistant.customizeResponseText +type: function(command) +--- +--- +##### shortDescription +Customizes AI Assistant response texts for each requested command. + +##### param(command): DataGridCommandInfo +Information about the command. + +##### return: ResponseStatusTexts +Custom texts for **success** and **failure** response statuses. + +--- +Use this function to customize response message texts for AI Assistant commands. **customizeResponseText** is called for each requested command. The AI Assistant chat displays these texts below the response title. When a response includes multiple commands, the chat displays each command's text on separate lines. + +When a command succeeds, the AI Assistant chat displays the response text in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the text in red and prefixes with a cross mark emoji (❌) instead. + +The **command** parameter contains the following fields: + +- **name**: The command's name ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). +- **args**: Command arguments. Refer to [DataGridPredefinedCommands]({basewidgetpath}/Types/DataGridPredefinedCommands/) for information about the arguments of each available command. + +Configure **customizeResponseText** to return an object with the following fields: + +- **success**: Text to display when the command succeeds. +- **failure**: Text to display when the command fails. + +Omit a field in the return object to use default texts. + +You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: + +--- + +##### jQuery + + + const currentLocale = DevExpress.localization.locale(); + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseText(command) { + switch (currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + import { locale } from "devextreme/localization"; + + export class AppComponent { + currentLocale = locale(); + customizeResponseText = (command) => { + switch (this.currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + import { locale } from "devextreme/localization"; + + const currentLocale = locale(); + function customizeResponseText(command) { + switch (currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; + +--- diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md new file mode 100644 index 0000000000..75b6b975b6 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -0,0 +1,122 @@ +--- +id: dxDataGrid.Options.aiAssistant.customizeResponseTitle +type: function(status, commandNames) +--- +--- +##### shortDescription +Customizes AI Assistant response titles. + +##### param(status): Enums.ResponseStatus +The response status. If a response includes multiple requested commands, all must succeed for this parameter to return *"success"*. + +##### param(commandNames): Array +An array of requested commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). + +##### return: String +The custom response title. + +--- +Use this function to customize the titles of AI Assistant response messages. + +You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: + +--- + +##### jQuery + + + const currentLocale = DevExpress.localization.locale(); + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseTitle(status, commandNames) { + switch (currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + import { locale } from "devextreme/localization"; + + export class AppComponent { + currentLocale = locale(); + customizeResponseTitle = (status, commandNames) => { + switch (this.currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + import { locale } from "devextreme/localization"; + + const currentLocale = locale(); + function customizeResponseTitle(status, commandNames) { + switch (currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; + +--- diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md new file mode 100644 index 0000000000..b1f89b0b14 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md @@ -0,0 +1,15 @@ +--- +id: DataGridCommandInfo +module: ui/data_grid +export: DataGridCommandInfo +type: CommandInfo +--- +--- +##### shortDescription +Information about a predefined DataGrid command. + +--- +**DataGridCommandInfo** contains the following fields: + +- **name**: The predefined command's name ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). +- **args**: Command arguments. Refer to [DataGridPredefinedCommands]({basewidgetpath}/Types/DataGridPredefinedCommands/) for information about the arguments of each available command. diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md new file mode 100644 index 0000000000..d49f0dbbb0 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md @@ -0,0 +1,39 @@ +--- +id: DataGridPredefinedCommandNames +module: ui/data_grid +export: DataGridPredefinedCommandNames +type: String +--- +--- +##### shortDescription +Names of predefined commands available in the DevExtreme DataGrid. + +--- +The following commands are available: + +- **columnsVisibility** +- **columnsReorder** +- **columnsPinning** +- **columnsResize** +- **filterValue** +- **clearFilter** +- **focusRowByKey** +- **focusRowByIndex** +- **paging** +- **pageSize** +- **pageIndex** +- **searching** +- **selectByKeys** +- **selectByIndexes** +- **selectAll** +- **deselectAll** +- **clearSelection** +- **sorting** +- **clearSorting** +- **grouping** +- **clearGrouping** +- **summary** +- **clearSummary** + +#####See Also##### +- [DataGridPredefinedCommands]({basewidgetpath}/Types/DataGridPredefinedCommands) \ No newline at end of file diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md new file mode 100644 index 0000000000..f70d3efdf9 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md @@ -0,0 +1,78 @@ +--- +id: DataGridPredefinedCommands +module: ui/data_grid +export: DataGridPredefinedCommands +type: PredefinedCommands | Object +inherits: PredefinedCommands +--- +--- +##### shortDescription +Predefined commands available in the DevExtreme DataGrid. + +--- +The following code snippet lists available commands with their arguments: + + columnsVisibility: { + dataField: string; + visible: boolean; + }; + columnsReorder: { + dataField: string; + visibleIndex: boolean; + }; + columnsPinning: { + dataField: string; + fixed: boolean; + fixedPosition?: 'left' | 'right'; + }; + columnsResize: { + dataField: string; + width: number | string; + }; + filterValue: { + expression: FilterExprObj | null; + }; + clearFilter: {}; + focusRowByKey: { + key: string | number | Array; + }; + focusRowByIndex: { + index: number; + }; + paging: { + enabled: boolean; + }; + pageSize: { + pageSize: number; + }; + pageIndex: { + pageIndex: number; + }; + searching: { + text: string; + }; + selectByKeys: { + keys: Array>; + preserve: boolean; + }; + selectByIndexes: { + indexes: number[] + }; + selectAll: {}; + deselectAll: {}; + clearSelection: {}; + sorting: { + dataField: string; + sortOrder: SortOrder | 'none'; + }; + clearSorting: {}; + grouping: { + dataField: string; + groupIndex: number; + }; + clearGrouping: {}; + summary: { + totalItems: Array; + groupItems: Array; + }; + clearSummary: {}; diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md new file mode 100644 index 0000000000..08bd7e09b2 --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md @@ -0,0 +1,23 @@ +--- +id: SummaryCommandGroupItem +module: ui/data_grid +export: SummaryCommandGroupItem +acceptValues: 'showInColumn' | 'displayFormat' | 'showInGroupFooter' | 'alignByColumn' +type: Pick | Object +--- +--- +##### shortDescription +A group summary item in a DataGrid summary command. + +--- +This object includes the following fields: + +- **alignByColumn**: Specifies wheter the summary item is aligned to a column. +- **column**: The summary item's data column. +- **displayFormat**: The format of the summary item's text. +- **showInColumn**: The column that displays the summary item. +- **showInGroupFooter**: Specifies whether the summary item is displayed in the group footer. +- **summaryType**: The summary calculation type ([SummaryType](/Documentation/ApiReference/Common_Types/grids/#SummaryType)). + +#####See Also##### +- [SummaryGroupItem]({basewidgetpath}/Types/SummaryGroupItem/) \ No newline at end of file diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandTotalItem/SummaryCommandTotalItem.md b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandTotalItem/SummaryCommandTotalItem.md new file mode 100644 index 0000000000..59ef519b5e --- /dev/null +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandTotalItem/SummaryCommandTotalItem.md @@ -0,0 +1,21 @@ +--- +id: SummaryCommandTotalItem +module: ui/data_grid +export: SummaryCommandTotalItem +acceptValues: 'showInColumn' | 'displayFormat' +type: Pick | Object +--- +--- +##### shortDescription +A total summary item in a DataGrid summary command. + +--- +This object includes the following fields: + +- **column**: The summary item's data column. +- **displayFormat**: The format of the summary item's text. +- **showInColumn**: The column that displays the summary item. +- **summaryType**: The summary calculation type ([SummaryType](/Documentation/ApiReference/Common_Types/grids/#SummaryType)). + +#####See Also##### +- [SummaryTotalItem]({basewidgetpath}/Types/SummaryTotalItem/) \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md index ca53132ed1..fbf4802903 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md @@ -13,7 +13,10 @@ Use DevExtreme [Chat](/api-reference/10%20UI%20Components/dxChat/1%20Configurati We do not recommend that you specify the following Chat options: -- [messageTemplate](/api-reference/10%20UI%20Components/dxChat/1%20Configuration/messageTemplate.md '/Documentation/ApiReference/UI_Components/dxChat/Configuration/#messageTemplate') +- [dataSource](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#dataSource) - [editing](/api-reference/10%20UI%20Components/dxChat/1%20Configuration/editing '/Documentation/ApiReference/UI_Components/dxChat/Configuration/editing/') +- [messageTemplate](/api-reference/10%20UI%20Components/dxChat/1%20Configuration/messageTemplate.md '/Documentation/ApiReference/UI_Components/dxChat/Configuration/#messageTemplate') +- [onMessageEntered](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#onMessageEntered) +- [reloadOnChange](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#reloadOnChange) [/note] \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index 23ae6289d9..56f066f4da 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -4,13 +4,142 @@ type: function(command) --- --- ##### shortDescription - +Customizes AI Assistant response texts for each requested command. ##### param(command): CommandInfo - +Information about the command. ##### return: ResponseStatusTexts - +Custom texts for `success` and `failure` response statuses. + +--- +Use this function to customize response message texts for AI Assistant commands. **customizeResponseText** is called for each requested command. The AI Assistant chat displays these texts below the response title. When a response includes multiple commands, the chat displays each command's text on separate lines. + +When a command succeeds, the AI Assistant chat displays the response text in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the text in red and prefixes with a cross mark emoji (❌) instead. + +The **command** parameter contains the following fields: + +- **name**: The command's name ([PredefinedCommandNames](/Documentation/ApiReference/Common_Types/grids/PredefinedCommandNames/)). +- **args**: Command arguments. Refer to [PredefinedCommands](/Documentation/ApiReference/Common_Types/grids/PredefinedCommands/) for information about the arguments of each available command. + +Configure **customizeResponseText** to return an object with the following fields: + +- **success**: Text to display when the command succeeds. +- **failure**: Text to display when the command fails. + +Omit a field in the return object to use default texts. + +You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: + +--- + +##### jQuery + + + const currentLocale = DevExpress.localization.locale(); + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseText(command) { + switch (currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + import { locale } from "devextreme/localization"; + + export class AppComponent { + currentLocale = locale(); + customizeResponseText = (command) => { + switch (this.currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + import { locale } from "devextreme/localization"; + + const currentLocale = locale(); + function customizeResponseText(command) { + switch (currentLocale) { + case 'en': + return { + success: `Command succeeded: ${command.name}`, + failure: `Command failed: ${command.name}`, + }; + case 'fr': + return { /* Translated texts */ }; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; --- - \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index 3ac42b0a0e..798075925c 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -4,16 +4,119 @@ type: function(status, commandNames) --- --- ##### shortDescription - +Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus - +The response status. If a response includes multiple requested commands, all must succeed for this parameter to return *"success"*. ##### param(commandNames): Array - +An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/Types/PredefinedCommandNames/)). ##### return: String - +The custom response title. + +--- +Use this function to customize the titles of AI Assistant response messages. + +You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: + +--- + +##### jQuery + + + const currentLocale = DevExpress.localization.locale(); + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseTitle(status, commandNames) { + switch (currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + import { locale } from "devextreme/localization"; + + export class AppComponent { + currentLocale = locale(); + customizeResponseTitle = (status, commandNames) => { + switch (this.currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + import { locale } from "devextreme/localization"; + + const currentLocale = locale(); + function customizeResponseTitle(status, commandNames) { + switch (currentLocale) { + case 'en': + return `${status.toUpperCase()}: ${commandNames.join(', ')}`; + case 'fr': + return { /* Translated texts */ }; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; --- - \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/popup.md b/api-reference/40 Common Types/15 grids/AIAssistant/popup.md index 12a4e81999..1ac3199055 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/popup.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/popup.md @@ -15,6 +15,8 @@ We do not recommend that you specify the following Popup options: - [contentTemplate](/api-reference/10%20UI%20Components/dxOverlay/1%20Configuration/contentTemplate.md '/Documentation/ApiReference/UI_Components/dxPopup/Configuration/#contentTemplate') - [fullScreen](/api-reference/10%20UI%20Components/dxPopup/1%20Configuration/fullScreen.md '/Documentation/ApiReference/UI_Components/dxPopup/Configuration/#fullScreen') +- [onHidden](/Documentation/ApiReference/UI_Components/dxPopup/Configuration/#onHidden) +- [onShowing](/Documentation/ApiReference/UI_Components/dxPopup/Configuration/#onShowing) - [showTitle](/api-reference/10%20UI%20Components/dxPopup/1%20Configuration/showTitle.md '/Documentation/ApiReference/UI_Components/dxPopup/Configuration/#showTitle') - [toolbarItems](/api-reference/10%20UI%20Components/dxPopup/1%20Configuration/toolbarItems '/Documentation/ApiReference/UI_Components/dxPopup/Configuration/toolbarItems/') diff --git a/api-reference/40 Common Types/15 grids/BasicFilterExprObj/BasicFilterExprObj.md b/api-reference/40 Common Types/15 grids/BasicFilterExprObj/BasicFilterExprObj.md new file mode 100644 index 0000000000..be6ea05a22 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/BasicFilterExprObj/BasicFilterExprObj.md @@ -0,0 +1,21 @@ +--- +id: BasicFilterExprObj +module: common/grids +export: BasicFilterExprObj +type: Object +--- +--- +##### shortDescription +A basic DataGrid/TreeList filter expression. + +--- +This object includes the following fields: + +- **type**: The expression type. Set to *"basic"*. +- **field**: The filtered data field. +- **operator**: A [SearchOperation](/Documentation/ApiReference/Common_Types/data/#SearchOperation) comparison operator. +- **value**: The comparison value. Can be one of the following types: + - `string` + - `number` + - `boolean` + - `null` diff --git a/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md b/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md new file mode 100644 index 0000000000..13374cd5b6 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md @@ -0,0 +1,17 @@ +--- +id: CombinedFilterExprObj +module: common/grids +export: CombinedFilterExprObj +type: Object +--- +--- +##### shortDescription +A combined DataGrid/TreeList filter expression. + +--- +This object includes the following fields: + +- **type**: The expression type. Set to *"combined"*. +- **left**: The first filter expression. +- **combiner**: The combination operation. Accepted values: *"and"*, *"or"*. +- **right**: The second filter expression \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md new file mode 100644 index 0000000000..e04820b29b --- /dev/null +++ b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md @@ -0,0 +1,15 @@ +--- +id: CommandInfo +module: common/grids +export: CommandInfo +type: any +--- +--- +##### shortDescription +Information about a predefined DataGrid/TreeList command. + +--- +**CommandInfo** contains the following fields: + +- **name**: The predefined command's name ([CommandInfo]({basewidgetpath}/PredefinedCommandNames/)). +- **args**: Command arguments. Refer to [PredefinedCommands]({basewidgetpath}/PredefinedCommands/) for information about the arguments of each available command. diff --git a/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md b/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md new file mode 100644 index 0000000000..b9ad236db4 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md @@ -0,0 +1,15 @@ +--- +id: CompositeKeyPair +module: common/grids +export: CompositeKeyPair +type: Object +--- +--- +##### shortDescription +A field/value pair used in composite DataGrid/TreeList keys. + +--- +This object includes the following fields: + +- **field**: The key field's name. +- **value**: The key field's value. Can be a `string` or `number`. \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/FilterExprObj/FilterExprObj.md b/api-reference/40 Common Types/15 grids/FilterExprObj/FilterExprObj.md new file mode 100644 index 0000000000..5caf4812e5 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/FilterExprObj/FilterExprObj.md @@ -0,0 +1,16 @@ +--- +id: FilterExprObj +module: common/grids +export: FilterExprObj +type: BasicFilterExprObj | CombinedFilterExprObj | NegatedFilterExprObj +--- +--- +##### shortDescription +A DataGrid/TreeList filter expression. + +--- +**FilterExprObj** is a union of multiple types that changes based on the represented filter expression. Refer to the following topics for additional information: + +- [BasicFilterExprObj]({basewidgetpath}/BasicFilterExprObj/) +- [CombinedFilterExprObj]({basewidgetpath}/CombinedFilterExprObj/) +- [NegatedFilterExprObj]({basewidgetpath}/NegatedFilterExprObj/) \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/NegatedFilterExprObj/NegatedFilterExprObj.md b/api-reference/40 Common Types/15 grids/NegatedFilterExprObj/NegatedFilterExprObj.md new file mode 100644 index 0000000000..ac391c35ad --- /dev/null +++ b/api-reference/40 Common Types/15 grids/NegatedFilterExprObj/NegatedFilterExprObj.md @@ -0,0 +1,15 @@ +--- +id: NegatedFilterExprObj +module: common/grids +export: NegatedFilterExprObj +type: Object +--- +--- +##### shortDescription +A negated ([unary NOT](/Documentation/Guide/Data_Binding/Data_Layer/#Reading_Data/Filtering/Unary_Filter_Operation)) DataGrid/TreeList filter expression. + +--- +This object includes the following fields: + +- **type**: The expression type. Set to *"negated"*. +- **expression**: A filter expression ([FilterExprObj]({basewidgetpath}/FilterExprObj/)) to negate. \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md b/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md new file mode 100644 index 0000000000..89c1107929 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md @@ -0,0 +1,35 @@ +--- +id: PredefinedCommandNames +module: common/grids +export: PredefinedCommandNames +type: String +--- +--- +##### shortDescription +Names of predefined commands available in the DevExtreme DataGrid and TreeList. + +--- +The following commands are available: + +- **columnsVisibility** +- **columnsReorder** +- **columnsPinning** +- **columnsResize** +- **filterValue** +- **clearFilter** +- **focusRowByKey** +- **focusRowByIndex** +- **paging** +- **pageSize** +- **pageIndex** +- **searching** +- **selectByKeys** +- **selectByIndexes** +- **selectAll** +- **deselectAll** +- **clearSelection** +- **sorting** +- **clearSorting** + +#####See Also##### +- [PredefinedCommands]({basewidgetpath}/PredefinedCommands) \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md new file mode 100644 index 0000000000..fac41999e4 --- /dev/null +++ b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md @@ -0,0 +1,67 @@ +--- +id: PredefinedCommands +module: common/grids +export: PredefinedCommands +type: Object +--- +--- +##### shortDescription +Predefined commands available in the DevExtreme DataGrid and TreeList. + +--- +The following code snippet lists available commands with their arguments: + + columnsVisibility: { + dataField: string; + visible: boolean; + }; + columnsReorder: { + dataField: string; + visibleIndex: boolean; + }; + columnsPinning: { + dataField: string; + fixed: boolean; + fixedPosition?: 'left' | 'right'; + }; + columnsResize: { + dataField: string; + width: number | string; + }; + filterValue: { + expression: FilterExprObj | null; + }; + clearFilter: {}; + focusRowByKey: { + key: string | number | Array; + }; + focusRowByIndex: { + index: number; + }; + paging: { + enabled: boolean; + }; + pageSize: { + pageSize: number; + }; + pageIndex: { + pageIndex: number; + }; + searching: { + text: string; + }; + selectByKeys: { + keys: Array>; + preserve: boolean; + }; + selectByIndexes: { + indexes: number[] + }; + selectAll: {}; + deselectAll: {}; + clearSelection: {}; + sorting: { + dataField: string; + sortOrder: SortOrder | 'none'; + }; + clearSorting: {}; diff --git a/api-reference/_hidden/Enums/ResponseStatus.md b/api-reference/40 Common Types/15 grids/ResponseStatus.md similarity index 85% rename from api-reference/_hidden/Enums/ResponseStatus.md rename to api-reference/40 Common Types/15 grids/ResponseStatus.md index dbe9d96592..461f96b30b 100644 --- a/api-reference/_hidden/Enums/ResponseStatus.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatus.md @@ -6,7 +6,7 @@ references: AIAssistant.customizeResponseTitle --- --- ##### shortDescription - +The AI response status. --- \ No newline at end of file diff --git a/api-reference/NewTopics/ResponseStatusTexts/ResponseStatusTexts.md b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md similarity index 56% rename from api-reference/NewTopics/ResponseStatusTexts/ResponseStatusTexts.md rename to api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md index bec3409a7f..b599c481dd 100644 --- a/api-reference/NewTopics/ResponseStatusTexts/ResponseStatusTexts.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md @@ -6,7 +6,7 @@ type: Object --- --- ##### shortDescription - +Response texts for each status. --- - \ No newline at end of file +This object can contain two string values: `success` and `failure`. \ No newline at end of file diff --git a/api-reference/NewTopics/BasicFilterExprObj/BasicFilterExprObj.md b/api-reference/NewTopics/BasicFilterExprObj/BasicFilterExprObj.md deleted file mode 100644 index 43169caa9b..0000000000 --- a/api-reference/NewTopics/BasicFilterExprObj/BasicFilterExprObj.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: BasicFilterExprObj -module: common/grids -export: BasicFilterExprObj -type: Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/CombinedFilterExprObj/CombinedFilterExprObj.md b/api-reference/NewTopics/CombinedFilterExprObj/CombinedFilterExprObj.md deleted file mode 100644 index 1a19ec7d1b..0000000000 --- a/api-reference/NewTopics/CombinedFilterExprObj/CombinedFilterExprObj.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: CombinedFilterExprObj -module: common/grids -export: CombinedFilterExprObj -type: Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/CommandInfo/CommandInfo.md b/api-reference/NewTopics/CommandInfo/CommandInfo.md deleted file mode 100644 index c52f8db071..0000000000 --- a/api-reference/NewTopics/CommandInfo/CommandInfo.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: CommandInfo -module: common/grids -export: CommandInfo -type: any ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/CompositeKeyPair/CompositeKeyPair.md b/api-reference/NewTopics/CompositeKeyPair/CompositeKeyPair.md deleted file mode 100644 index 1439cb7cf2..0000000000 --- a/api-reference/NewTopics/CompositeKeyPair/CompositeKeyPair.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: CompositeKeyPair -module: common/grids -export: CompositeKeyPair -type: Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/DataGridCommandInfo/DataGridCommandInfo.md b/api-reference/NewTopics/DataGridCommandInfo/DataGridCommandInfo.md deleted file mode 100644 index b698616711..0000000000 --- a/api-reference/NewTopics/DataGridCommandInfo/DataGridCommandInfo.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: DataGridCommandInfo -module: ui/data_grid -export: DataGridCommandInfo -type: CommandInfo ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md b/api-reference/NewTopics/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md deleted file mode 100644 index ddb8daeb66..0000000000 --- a/api-reference/NewTopics/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: DataGridPredefinedCommandNames -module: ui/data_grid -export: DataGridPredefinedCommandNames -type: String ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/DataGridPredefinedCommands/DataGridPredefinedCommands.md b/api-reference/NewTopics/DataGridPredefinedCommands/DataGridPredefinedCommands.md deleted file mode 100644 index 05d93d82ba..0000000000 --- a/api-reference/NewTopics/DataGridPredefinedCommands/DataGridPredefinedCommands.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: DataGridPredefinedCommands -module: ui/data_grid -export: DataGridPredefinedCommands -type: PredefinedCommands | Object -inherits: PredefinedCommands ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/FilterExprObj/FilterExprObj.md b/api-reference/NewTopics/FilterExprObj/FilterExprObj.md deleted file mode 100644 index 8ee77beef7..0000000000 --- a/api-reference/NewTopics/FilterExprObj/FilterExprObj.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: FilterExprObj -module: common/grids -export: FilterExprObj -type: BasicFilterExprObj | CombinedFilterExprObj | NegatedFilterExprObj ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/NegatedFilterExprObj/NegatedFilterExprObj.md b/api-reference/NewTopics/NegatedFilterExprObj/NegatedFilterExprObj.md deleted file mode 100644 index 669f314ee5..0000000000 --- a/api-reference/NewTopics/NegatedFilterExprObj/NegatedFilterExprObj.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: NegatedFilterExprObj -module: common/grids -export: NegatedFilterExprObj -type: Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/PredefinedCommandNames/PredefinedCommandNames.md b/api-reference/NewTopics/PredefinedCommandNames/PredefinedCommandNames.md deleted file mode 100644 index dfd343b63a..0000000000 --- a/api-reference/NewTopics/PredefinedCommandNames/PredefinedCommandNames.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: PredefinedCommandNames -module: common/grids -export: PredefinedCommandNames -type: String ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/PredefinedCommands/PredefinedCommands.md b/api-reference/NewTopics/PredefinedCommands/PredefinedCommands.md deleted file mode 100644 index 4efcc31424..0000000000 --- a/api-reference/NewTopics/PredefinedCommands/PredefinedCommands.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -id: PredefinedCommands -module: common/grids -export: PredefinedCommands -type: Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/SummaryCommandGroupItem/SummaryCommandGroupItem.md b/api-reference/NewTopics/SummaryCommandGroupItem/SummaryCommandGroupItem.md deleted file mode 100644 index 2d97e326e9..0000000000 --- a/api-reference/NewTopics/SummaryCommandGroupItem/SummaryCommandGroupItem.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: SummaryCommandGroupItem -module: ui/data_grid -export: SummaryCommandGroupItem -acceptValues: 'showInColumn' | 'displayFormat' | 'showInGroupFooter' | 'alignByColumn' -type: Pick | Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/api-reference/NewTopics/SummaryCommandTotalItem/SummaryCommandTotalItem.md b/api-reference/NewTopics/SummaryCommandTotalItem/SummaryCommandTotalItem.md deleted file mode 100644 index 683dac22b3..0000000000 --- a/api-reference/NewTopics/SummaryCommandTotalItem/SummaryCommandTotalItem.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: SummaryCommandTotalItem -module: ui/data_grid -export: SummaryCommandTotalItem -acceptValues: 'showInColumn' | 'displayFormat' -type: Pick | Object ---- ---- -##### shortDescription - - ---- - \ No newline at end of file diff --git a/images/DataGrid/icons/aiAssistantButton.png b/images/DataGrid/icons/aiAssistantButton.png new file mode 100644 index 0000000000000000000000000000000000000000..c51d5e0d05dd87fa868229d37ac4b76ef0a576a4 GIT binary patch literal 527 zcmV+q0`UEbP)z@;j|==^1poj5AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy0%A)?L;(MXkIcUS000SaNLh0L01FcU01FcV0GgZ_00007bV*G` z2kHeA1}!EB?MCGQ00CD?L_t(Y$L*9cNJ3E*hCj0)n+purH;K^VU?mjfS|n}JP(gbT z*<{cXQDZF)fe{T2LQ6|iAPqu9)Y#M{C>ADRqQ1W^BJY()L_>JDd(Ppz_rK@-*C+8S zs|UKEF6i$-8J1}N6!gd%QN}r;N|roNor+~y?^;(}=X#c_tP*nMD571JE%iRL*QzWK zXO%vnOp?Nc|+G)+%VP_9VFgyJbK$hB?1I2#T(RdnD+*1bv${K3a(-N4AO$ss98a` zq`XeHpD1@$P>z_{4yLZ7P~eaWhS|e!0U1nNWSS63CUH69k}?ovhDD1gE2#VVcR~LE^Z^O*ijT(- R&}{$!002ovPDHLkV1nUm%?SVi literal 0 HcmV?d00001 diff --git a/includes/grids-toolbar.md b/includes/grids-toolbar.md index 87e577c75e..28a7b238e7 100644 --- a/includes/grids-toolbar.md +++ b/includes/grids-toolbar.md @@ -9,6 +9,11 @@ Predefined controls appear on the toolbar depending on whether a specific {Widge Image Prerequisites + + aiAssistantButton + DevExtreme JavaScript jQuery Angular UI component {WidgetName} Toolbar AddButton + aiIntegration or aiAssistant.aiIntegration is configured and aiAssistant.enabled is true + addRowButton DevExtreme JavaScript jQuery Angular UI component {WidgetName} Toolbar AddButton From 6229fddea4be6c676747c77c456590caa827ba46 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 15:48:46 +0400 Subject: [PATCH 02/17] Add Initial Fixes --- .../1 Configuration/aiAssistant/customizeResponseText.md | 2 +- .../1 Configuration/aiAssistant/customizeResponseTitle.md | 2 +- .../SummaryCommandGroupItem/SummaryCommandGroupItem.md | 2 +- .../15 grids/AIAssistant/customizeResponseText.md | 2 +- .../15 grids/AIAssistant/customizeResponseTitle.md | 4 ++-- .../40 Common Types/15 grids/CommandInfo/CommandInfo.md | 2 +- includes/grids-toolbar.md | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index f56d8c1623..b95e5db345 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -89,7 +89,7 @@ You can use this function to translate response texts. The following code snippe diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md index 75b6b975b6..dea3ff05bb 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -72,7 +72,7 @@ You can use this function to translate response texts. The following code snippe diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md index 08bd7e09b2..1cff8e0876 100644 --- a/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/SummaryCommandGroupItem/SummaryCommandGroupItem.md @@ -12,7 +12,7 @@ A group summary item in a DataGrid summary command. --- This object includes the following fields: -- **alignByColumn**: Specifies wheter the summary item is aligned to a column. +- **alignByColumn**: Specifies whether the summary item is aligned to a column. - **column**: The summary item's data column. - **displayFormat**: The format of the summary item's text. - **showInColumn**: The column that displays the summary item. diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index 56f066f4da..636e12cce8 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -89,7 +89,7 @@ You can use this function to translate response texts. The following code snippe diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index 798075925c..83ba791d64 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -10,7 +10,7 @@ Customizes AI Assistant response titles. The response status. If a response includes multiple requested commands, all must succeed for this parameter to return *"success"*. ##### param(commandNames): Array -An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/Types/PredefinedCommandNames/)). +An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). ##### return: String The custom response title. @@ -72,7 +72,7 @@ You can use this function to translate response texts. The following code snippe diff --git a/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md index e04820b29b..74a6dbf736 100644 --- a/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md +++ b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md @@ -11,5 +11,5 @@ Information about a predefined DataGrid/TreeList command. --- **CommandInfo** contains the following fields: -- **name**: The predefined command's name ([CommandInfo]({basewidgetpath}/PredefinedCommandNames/)). +- **name**: The predefined command's name ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). - **args**: Command arguments. Refer to [PredefinedCommands]({basewidgetpath}/PredefinedCommands/) for information about the arguments of each available command. diff --git a/includes/grids-toolbar.md b/includes/grids-toolbar.md index 28a7b238e7..fc5482fe90 100644 --- a/includes/grids-toolbar.md +++ b/includes/grids-toolbar.md @@ -11,7 +11,7 @@ Predefined controls appear on the toolbar depending on whether a specific {Widge aiAssistantButton - DevExtreme JavaScript jQuery Angular UI component {WidgetName} Toolbar AddButton + DevExtreme JavaScript jQuery Angular UI component {WidgetName} Toolbar AI Assistant Button aiIntegration or aiAssistant.aiIntegration is configured and aiAssistant.enabled is true From 6ba4f7e5462a2d48dad8c836a8997ef9029dbb7f Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 16:10:31 +0400 Subject: [PATCH 03/17] Add Minor Type Fix --- .../DataGridPredefinedCommands/DataGridPredefinedCommands.md | 2 +- .../15 grids/PredefinedCommands/PredefinedCommands.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md index f70d3efdf9..90bd1ab2ba 100644 --- a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md @@ -18,7 +18,7 @@ The following code snippet lists available commands with their arguments: }; columnsReorder: { dataField: string; - visibleIndex: boolean; + visibleIndex: number; }; columnsPinning: { dataField: string; diff --git a/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md index fac41999e4..8f3cfb62e5 100644 --- a/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md +++ b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md @@ -17,7 +17,7 @@ The following code snippet lists available commands with their arguments: }; columnsReorder: { dataField: string; - visibleIndex: boolean; + visibleIndex: number; }; columnsPinning: { dataField: string; From 91938b7a9ec39102d73c468d2a8e7a14e4b599fa Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 16:42:11 +0400 Subject: [PATCH 04/17] Add Type Links --- .../9 Types/DataGridCommandInfo/DataGridCommandInfo.md | 1 + .../40 Common Types/15 grids/CommandInfo/CommandInfo.md | 1 + api-reference/40 Common Types/15 grids/ResponseStatus.md | 1 + .../15 grids/ResponseStatusTexts/ResponseStatusTexts.md | 1 + 4 files changed, 4 insertions(+) diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md index b1f89b0b14..704e92e6c3 100644 --- a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridCommandInfo/DataGridCommandInfo.md @@ -3,6 +3,7 @@ id: DataGridCommandInfo module: ui/data_grid export: DataGridCommandInfo type: CommandInfo +generateTypeLink: --- --- ##### shortDescription diff --git a/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md index 74a6dbf736..4f922f78ff 100644 --- a/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md +++ b/api-reference/40 Common Types/15 grids/CommandInfo/CommandInfo.md @@ -3,6 +3,7 @@ id: CommandInfo module: common/grids export: CommandInfo type: any +generateTypeLink: --- --- ##### shortDescription diff --git a/api-reference/40 Common Types/15 grids/ResponseStatus.md b/api-reference/40 Common Types/15 grids/ResponseStatus.md index 461f96b30b..75938aadeb 100644 --- a/api-reference/40 Common Types/15 grids/ResponseStatus.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatus.md @@ -3,6 +3,7 @@ id: Enums.ResponseStatus acceptValues: 'success' | 'failure' type: Union references: AIAssistant.customizeResponseTitle +generateTypeLink: --- --- ##### shortDescription diff --git a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md index b599c481dd..e24984c6a4 100644 --- a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md @@ -3,6 +3,7 @@ id: ResponseStatusTexts module: common/grids export: ResponseStatusTexts type: Object +generateTypeLink: --- --- ##### shortDescription From ac898f3843b751a2bf0c1409fc6fb9aec6a49d16 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 16:49:10 +0400 Subject: [PATCH 05/17] Add Minor Code & Text Fixes --- .../1 Configuration/aiAssistant/customizeResponseText.md | 2 +- .../1 Configuration/aiAssistant/customizeResponseTitle.md | 8 ++++---- .../DataGridPredefinedCommands.md | 2 +- .../15 grids/AIAssistant/customizeResponseText.md | 2 +- .../15 grids/AIAssistant/customizeResponseTitle.md | 8 ++++---- .../CombinedFilterExprObj/CombinedFilterExprObj.md | 2 +- .../15 grids/PredefinedCommands/PredefinedCommands.md | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index b95e5db345..96099e0592 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -136,7 +136,7 @@ You can use this function to translate response texts. The following code snippe <{WidgetName}> ); diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md index dea3ff05bb..87cdd122bb 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -34,7 +34,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }, }, @@ -61,7 +61,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; } @@ -87,7 +87,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; @@ -104,7 +104,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md index 90bd1ab2ba..62e99664d7 100644 --- a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md @@ -56,7 +56,7 @@ The following code snippet lists available commands with their arguments: preserve: boolean; }; selectByIndexes: { - indexes: number[] + indexes: number[]; }; selectAll: {}; deselectAll: {}; diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index 636e12cce8..5c749a22e2 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -136,7 +136,7 @@ You can use this function to translate response texts. The following code snippe <{WidgetName}> ); diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index 83ba791d64..5892fdc761 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -34,7 +34,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }, }, @@ -61,7 +61,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; } @@ -87,7 +87,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; @@ -104,7 +104,7 @@ You can use this function to translate response texts. The following code snippe case 'en': return `${status.toUpperCase()}: ${commandNames.join(', ')}`; case 'fr': - return { /* Translated texts */ }; + return /* Translated texts */; } }; diff --git a/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md b/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md index 13374cd5b6..1bc7f78296 100644 --- a/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md +++ b/api-reference/40 Common Types/15 grids/CombinedFilterExprObj/CombinedFilterExprObj.md @@ -14,4 +14,4 @@ This object includes the following fields: - **type**: The expression type. Set to *"combined"*. - **left**: The first filter expression. - **combiner**: The combination operation. Accepted values: *"and"*, *"or"*. -- **right**: The second filter expression \ No newline at end of file +- **right**: The second filter expression. \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md index 8f3cfb62e5..8b3da0d331 100644 --- a/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md +++ b/api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md @@ -55,7 +55,7 @@ The following code snippet lists available commands with their arguments: preserve: boolean; }; selectByIndexes: { - indexes: number[] + indexes: number[]; }; selectAll: {}; deselectAll: {}; From c77507187a682fea7061a8a15a26ad904003de4b Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Thu, 21 May 2026 15:34:56 +0400 Subject: [PATCH 06/17] Update Following Feedback --- .../aiAssistant/customizeResponseText.md | 4 +- .../aiAssistant/customizeResponseTitle.md | 103 +++++++++++++++++- .../DataGridPredefinedCommandNames.md | 2 +- .../AIAssistant/customizeResponseText.md | 4 +- .../AIAssistant/customizeResponseTitle.md | 103 +++++++++++++++++- .../PredefinedCommandNames.md | 2 +- 6 files changed, 202 insertions(+), 16 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index 96099e0592..a9fa434afa 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -58,10 +58,10 @@ You can use this function to translate response texts. The following code snippe - + > diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md index 87cdd122bb..9e2fdb3ce2 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -7,7 +7,7 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response includes multiple requested commands, all must succeed for this parameter to return *"success"*. +The response status. If a response includes multiple requested commands, all must succeed for this parameter's value to equal *"success"*. ##### param(commandNames): Array An array of requested commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). @@ -16,9 +16,102 @@ An array of requested commands ([DataGridPredefinedCommandNames]({basewidgetpath The custom response title. --- -Use this function to customize the titles of AI Assistant response messages. +Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: -You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +--- + +##### jQuery + + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseTitle(status, commandNames) { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + + export class AppComponent { + customizeResponseTitle = (status, commandNames) => { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + + function customizeResponseTitle(status, commandNames) { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; + +--- + +You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: --- @@ -44,10 +137,10 @@ You can use this function to translate response texts. The following code snippe - + > diff --git a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md index d49f0dbbb0..d9d7439a66 100644 --- a/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md +++ b/api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommandNames/DataGridPredefinedCommandNames.md @@ -36,4 +36,4 @@ The following commands are available: - **clearSummary** #####See Also##### -- [DataGridPredefinedCommands]({basewidgetpath}/Types/DataGridPredefinedCommands) \ No newline at end of file +- [DataGridPredefinedCommands]({basewidgetpath}/Types/DataGridPredefinedCommands/) \ No newline at end of file diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index 5c749a22e2..cc243fa4c5 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -58,10 +58,10 @@ You can use this function to translate response texts. The following code snippe - + > diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index 5892fdc761..a6df8b09ed 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -7,7 +7,7 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response includes multiple requested commands, all must succeed for this parameter to return *"success"*. +The response status. If a response includes multiple requested commands, all must succeed for this parameter's value to equal *"success"*. ##### param(commandNames): Array An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). @@ -16,9 +16,102 @@ An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/Predef The custom response title. --- -Use this function to customize the titles of AI Assistant response messages. +Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: -You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +--- + +##### jQuery + + + $('#{widget-name}-container').dx{WidgetName}({ + aiAssistant: { + customizeResponseTitle(status, commandNames) { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }, + }, + }); + +##### Angular + + + + + + + + import { Dx{WidgetName}Module, type Dx{WidgetName}Types } from 'devextreme-angular/ui/{widget-name}'; + + export class AppComponent { + customizeResponseTitle = (status, commandNames) => { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }; + } + +##### Vue + + + + + + +##### React + + + import { {WidgetName}, AIAssistant, type {WidgetName}Types } from 'devextreme-react/{widget-name}'; + + function customizeResponseTitle(status, commandNames) { + switch (status) { + case 'success': + return `Completed: ${commandNames.join(', ')}`; + case 'failure': + return `Failed: ${commandNames.join(', ')}`; + } + }; + + function App() { + return ( + <{WidgetName}> + + + ); + }; + +--- + +You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: --- @@ -44,10 +137,10 @@ You can use this function to translate response texts. The following code snippe - + > diff --git a/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md b/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md index 89c1107929..0574088b2d 100644 --- a/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md +++ b/api-reference/40 Common Types/15 grids/PredefinedCommandNames/PredefinedCommandNames.md @@ -32,4 +32,4 @@ The following commands are available: - **clearSorting** #####See Also##### -- [PredefinedCommands]({basewidgetpath}/PredefinedCommands) \ No newline at end of file +- [PredefinedCommands]({basewidgetpath}/PredefinedCommands/) \ No newline at end of file From b13ce1036544b28271c4b4fe888ff2d9e29daebe Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Fri, 22 May 2026 14:07:06 +0400 Subject: [PATCH 07/17] Add Moved additionalInfo Desc. --- .../15 grids/AIAssistantRequestCreatingInfo/additionalInfo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/40 Common Types/15 grids/AIAssistantRequestCreatingInfo/additionalInfo.md b/api-reference/40 Common Types/15 grids/AIAssistantRequestCreatingInfo/additionalInfo.md index 3c0ba52fd2..1425c51f0e 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistantRequestCreatingInfo/additionalInfo.md +++ b/api-reference/40 Common Types/15 grids/AIAssistantRequestCreatingInfo/additionalInfo.md @@ -4,7 +4,7 @@ type: Object --- --- ##### shortDescription - +Additional information included in the AI Assistant request. --- \ No newline at end of file From 14575ae9e30e48012050a7049a607ae4e3014d10 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Fri, 22 May 2026 14:11:02 +0400 Subject: [PATCH 08/17] Add additionalInfo Desc. to onAIAssistantRequestCreating --- .../GridBase/1 Configuration/onAIAssistantRequestCreating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/10 UI Components/GridBase/1 Configuration/onAIAssistantRequestCreating.md b/api-reference/10 UI Components/GridBase/1 Configuration/onAIAssistantRequestCreating.md index 3e8d068020..7b7892b05e 100644 --- a/api-reference/10 UI Components/GridBase/1 Configuration/onAIAssistantRequestCreating.md +++ b/api-reference/10 UI Components/GridBase/1 Configuration/onAIAssistantRequestCreating.md @@ -29,7 +29,7 @@ The model data. Available only if you use Knockout. The JSON schema of the AI Assistant response. ##### field(e.additionalInfo): Record - +Additional information included in the AI Assistant request. --- Use this handler to modify the AI Assistant request. From 4099ff1c1584e02ad201251cb64ce5828925c3c4 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Mon, 25 May 2026 16:27:06 +0400 Subject: [PATCH 09/17] Add Demo Link --- api-reference/40 Common Types/15 grids/AIAssistant/chat.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md index fbf4802903..f8845cd70d 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md @@ -19,4 +19,9 @@ We do not recommend that you specify the following Chat options: - [onMessageEntered](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#onMessageEntered) - [reloadOnChange](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#reloadOnChange) -[/note] \ No newline at end of file +[/note] + +#include common-demobutton-named with { + url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/AIAssistant/", + name: "DataGrid" +} From 4bd320a13b0a9e34bb7dd080a1f0ee82f76c937c Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Mon, 25 May 2026 17:23:09 +0400 Subject: [PATCH 10/17] Update Demo Button Text --- api-reference/40 Common Types/15 grids/AIAssistant/chat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md index f8845cd70d..8d9ad943c7 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/chat.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/chat.md @@ -23,5 +23,5 @@ We do not recommend that you specify the following Chat options: #include common-demobutton-named with { url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/AIAssistant/", - name: "DataGrid" + name: "DataGrid - AI Assistant" } From 9bab617c97388787c81d8468f744e66c3aeaa2c6 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Mon, 25 May 2026 17:55:11 +0400 Subject: [PATCH 11/17] Update aiIntegration Description & Add Demo Links --- .../GridBase/1 Configuration/aiIntegration.md | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md b/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md index f19eb13903..0eae094cf2 100644 --- a/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md +++ b/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md @@ -8,15 +8,27 @@ default: undefined Binds the {WidgetName} to an AI service. --- -To activate AI functionality in {WidgetName}, configure this object and assign *"ai"* to a column's [type](/api-reference/_hidden/dxDataGridColumn/type.md '{basewidgetpath}/Configuration/columns/#type') property. +The DevExtreme {WidgetName} ships with the following AI features: -This object configures options for all AI columns within the component. To configure AI options specific to a column, define **columns[]**.**ai**.[aiIntegration](/api-reference/40%20Common%20Types/15%20grids/ColumnAIOptions/aiIntegration.md '{basewidgetpath}/Configuration/columns/ai/#aiIntegration'). +- AI Columns +- AI Assistant + +To activate AI functionality, configure **aiIntegration** and specify {WidgetName} properties as follows: + +- Assign *"ai"* to a column's [type](/api-reference/_hidden/dxDataGridColumn/type.md '{basewidgetpath}/Configuration/columns/#type') property to implement an AI Column. +- Set **aiAssistant**.[enabled]({basewidgetpath}/Configuration/aiAssistant/#enabled) to `true` to activate the AI Assistant. + +This object stores shared AI options for the {WidgetName} AI Assistant and all AI columns within the component. To configure AI options specific to a column, define **columns[]**.**ai**.[aiIntegration](/api-reference/40%20Common%20Types/15%20grids/ColumnAIOptions/aiIntegration.md '{basewidgetpath}/Configuration/columns/ai/#aiIntegration'). To configure AI options specific to the AI Assistant, define **aiAssistant**.[aiIntegration]({basewidgetpath}/Configuration/aiAssistant/#aiIntegration). #include common-demobutton-named with { url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/AIColumns/", - name: "DataGrid" + name: "DataGrid - AI Columns" } #include common-demobutton-named with { url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/TreeList/AIColumns/", - name: "TreeList" -} \ No newline at end of file + name: "TreeList - AI Columns" +} +#include common-demobutton-named with { + url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/AIAssistant/", + name: "DataGrid - AI Assistant" +} From d4551efae5f1926ef0575ef8164c31d4cec9047e Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Wed, 27 May 2026 12:35:23 +0400 Subject: [PATCH 12/17] Apply suggestions from code review Co-authored-by: Vladimir Abadzhev --- .../aiAssistant/customizeResponseText.md | 10 +++++----- .../aiAssistant/customizeResponseTitle.md | 8 ++++---- .../15 grids/AIAssistant/customizeResponseTitle.md | 2 +- .../ResponseStatusTexts/ResponseStatusTexts.md | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index a9fa434afa..d547c2afb1 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -4,18 +4,18 @@ type: function(command) --- --- ##### shortDescription -Customizes AI Assistant response texts for each requested command. +Customizes AI Assistant response messages for each command/request. ##### param(command): DataGridCommandInfo Information about the command. ##### return: ResponseStatusTexts -Custom texts for **success** and **failure** response statuses. +Custom messages for **success** and **failure** responses. --- -Use this function to customize response message texts for AI Assistant commands. **customizeResponseText** is called for each requested command. The AI Assistant chat displays these texts below the response title. When a response includes multiple commands, the chat displays each command's text on separate lines. +**customizeResponseText** is called for each command/request. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. -When a command succeeds, the AI Assistant chat displays the response text in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the text in red and prefixes with a cross mark emoji (❌) instead. +When a command succeeds, the AI Assistant chat displays the response in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the response in red and prefixes the text with a cross mark emoji (❌). The **command** parameter contains the following fields: @@ -27,7 +27,7 @@ Configure **customizeResponseText** to return an object with the following field - **success**: Text to display when the command succeeds. - **failure**: Text to display when the command fails. -Omit a field in the return object to use default texts. +If you don't specify any of these fields, the AI Assistant chat displays the default message. You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md index 9e2fdb3ce2..bf344ce5ea 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -7,16 +7,16 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response includes multiple requested commands, all must succeed for this parameter's value to equal *"success"*. +The response status. If a response describes multiple commands, all must succeed for this parameter's value to equal *"success"*. ##### param(commandNames): Array -An array of requested commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). +An array of commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). ##### return: String The custom response title. --- -Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: +Use this function to customize titles of AI Assistant response messages. The following code snippet adds response statuses to titles: --- @@ -111,7 +111,7 @@ Use this function to customize the titles of AI Assistant response messages. The --- -You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify titles for multiple locales: --- diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index a6df8b09ed..df51e93091 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -111,7 +111,7 @@ Use this function to customize the titles of AI Assistant response messages. The --- -You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +You can use this function to translate response titles. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify titles for multiple locales: --- diff --git a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md index e24984c6a4..d355f95c2d 100644 --- a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md @@ -7,7 +7,7 @@ generateTypeLink: --- --- ##### shortDescription -Response texts for each status. +Response messages for each status. --- This object can contain two string values: `success` and `failure`. \ No newline at end of file From 4b85ab1d71d1bc15d4997e9501bbee872a5c6b88 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Wed, 27 May 2026 12:48:01 +0400 Subject: [PATCH 13/17] Synchronize Updates --- .../aiAssistant/customizeResponseText.md | 4 ++-- .../15 grids/AIAssistant/customizeResponseText.md | 10 +++++----- .../15 grids/AIAssistant/customizeResponseTitle.md | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index d547c2afb1..22ac2a1469 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -4,7 +4,7 @@ type: function(command) --- --- ##### shortDescription -Customizes AI Assistant response messages for each command/request. +Customizes AI Assistant response messages for each command. ##### param(command): DataGridCommandInfo Information about the command. @@ -13,7 +13,7 @@ Information about the command. Custom messages for **success** and **failure** responses. --- -**customizeResponseText** is called for each command/request. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. +**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. When a command succeeds, the AI Assistant chat displays the response in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the response in red and prefixes the text with a cross mark emoji (❌). diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index cc243fa4c5..f1f7a398d2 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -4,18 +4,18 @@ type: function(command) --- --- ##### shortDescription -Customizes AI Assistant response texts for each requested command. +Customizes AI Assistant response messages for each command. ##### param(command): CommandInfo Information about the command. ##### return: ResponseStatusTexts -Custom texts for `success` and `failure` response statuses. +Custom messages for **success** and **failure** responses. --- -Use this function to customize response message texts for AI Assistant commands. **customizeResponseText** is called for each requested command. The AI Assistant chat displays these texts below the response title. When a response includes multiple commands, the chat displays each command's text on separate lines. +**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. -When a command succeeds, the AI Assistant chat displays the response text in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the text in red and prefixes with a cross mark emoji (❌) instead. +When a command succeeds, the AI Assistant chat displays the response in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the response in red and prefixes the text with a cross mark emoji (❌). The **command** parameter contains the following fields: @@ -27,7 +27,7 @@ Configure **customizeResponseText** to return an object with the following field - **success**: Text to display when the command succeeds. - **failure**: Text to display when the command fails. -Omit a field in the return object to use default texts. +If you don't specify any of these fields, the AI Assistant chat displays the default message. You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index df51e93091..73450be0d1 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -7,16 +7,16 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response includes multiple requested commands, all must succeed for this parameter's value to equal *"success"*. +The response status. If a response describes multiple commands, all must succeed for this parameter's value to equal *"success"*. ##### param(commandNames): Array -An array of requested commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). +An array of commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). ##### return: String The custom response title. --- -Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: +Use this function to customize titles of AI Assistant response messages. The following code snippet adds response statuses to titles: --- From 746d4254265a76b2d527c1932c9c6e52ee01d8c4 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Wed, 27 May 2026 12:51:26 +0400 Subject: [PATCH 14/17] Update Contractions --- .../1 Configuration/aiAssistant/customizeResponseText.md | 2 +- .../15 grids/AIAssistant/customizeResponseText.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index 22ac2a1469..2a62522e82 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -27,7 +27,7 @@ Configure **customizeResponseText** to return an object with the following field - **success**: Text to display when the command succeeds. - **failure**: Text to display when the command fails. -If you don't specify any of these fields, the AI Assistant chat displays the default message. +If you do not specify any of these fields, the AI Assistant chat displays the default message. You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index f1f7a398d2..b668b73b4c 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -27,7 +27,7 @@ Configure **customizeResponseText** to return an object with the following field - **success**: Text to display when the command succeeds. - **failure**: Text to display when the command fails. -If you don't specify any of these fields, the AI Assistant chat displays the default message. +If you do not specify any of these fields, the AI Assistant chat displays the default message. You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: From f65a277bd6218d6678eefa2a08d89f556b78b231 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Wed, 27 May 2026 19:25:03 +0400 Subject: [PATCH 15/17] Apply suggestions from code review Co-authored-by: dirkpieterse --- .../1 Configuration/aiAssistant/customizeResponseText.md | 4 ++-- .../1 Configuration/aiAssistant/customizeResponseTitle.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md index 2a62522e82..3f9f51da42 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseText.md @@ -13,7 +13,7 @@ Information about the command. Custom messages for **success** and **failure** responses. --- -**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. +**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these messages below the response title. If a response includes multiple commands, the chat displays each message on a separate line. When a command succeeds, the AI Assistant chat displays the response in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the response in red and prefixes the text with a cross mark emoji (❌). @@ -29,7 +29,7 @@ Configure **customizeResponseText** to return an object with the following field If you do not specify any of these fields, the AI Assistant chat displays the default message. -You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +You can use this function to localize response text. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify text for multiple locales: --- diff --git a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md index bf344ce5ea..2505c881bc 100644 --- a/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md +++ b/api-reference/10 UI Components/dxDataGrid/1 Configuration/aiAssistant/customizeResponseTitle.md @@ -7,7 +7,7 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response describes multiple commands, all must succeed for this parameter's value to equal *"success"*. +The response status. If a response describes multiple commands, this parameter equals *"success"* only if all commands succeed. ##### param(commandNames): Array An array of commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/DataGridPredefinedCommandNames/)). @@ -16,7 +16,7 @@ An array of commands ([DataGridPredefinedCommandNames]({basewidgetpath}/Types/Da The custom response title. --- -Use this function to customize titles of AI Assistant response messages. The following code snippet adds response statuses to titles: +Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: --- From a82fcabf1bf57c0ad3db550b6d2f31f86507ad1b Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Wed, 27 May 2026 19:29:35 +0400 Subject: [PATCH 16/17] Synchronize Edits --- .../15 grids/AIAssistant/customizeResponseText.md | 4 ++-- .../15 grids/AIAssistant/customizeResponseTitle.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md index b668b73b4c..0119314c76 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseText.md @@ -13,7 +13,7 @@ Information about the command. Custom messages for **success** and **failure** responses. --- -**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these message strings below the response title. When a response includes multiple commands, the chat displays individual messages on separate lines. +**customizeResponseText** is called for each command. Use this function to customize response messages for AI Assistant commands. The chat displays these messages below the response title. If a response includes multiple commands, the chat displays each message on a separate line. When a command succeeds, the AI Assistant chat displays the response in green and prefixes the text with a checkmark button emoji (✅). When a command fails, the AI Assistant chat displays the response in red and prefixes the text with a cross mark emoji (❌). @@ -29,7 +29,7 @@ Configure **customizeResponseText** to return an object with the following field If you do not specify any of these fields, the AI Assistant chat displays the default message. -You can use this function to translate response texts. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify texts for multiple locales: +You can use this function to localize response text. The following code snippet uses the [locale()](/Documentation/ApiReference/Common/Utils/localization/#locale) method to specify text for multiple locales: --- diff --git a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md index 73450be0d1..f9692340c2 100644 --- a/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md +++ b/api-reference/40 Common Types/15 grids/AIAssistant/customizeResponseTitle.md @@ -7,7 +7,7 @@ type: function(status, commandNames) Customizes AI Assistant response titles. ##### param(status): Enums.ResponseStatus -The response status. If a response describes multiple commands, all must succeed for this parameter's value to equal *"success"*. +The response status. If a response describes multiple commands, this parameter equals *"success"* only if all commands succeed. ##### param(commandNames): Array An array of commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedCommandNames/)). @@ -16,7 +16,7 @@ An array of commands ([PredefinedCommandNames]({basewidgetpath}/PredefinedComman The custom response title. --- -Use this function to customize titles of AI Assistant response messages. The following code snippet adds response statuses to titles: +Use this function to customize the titles of AI Assistant response messages. The following code snippet adds response statuses to titles: --- From cdd7db986c4430e9bf9a20fab11bd52470225ed0 Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Fri, 29 May 2026 07:34:38 +0400 Subject: [PATCH 17/17] Apply suggestions from code review Co-authored-by: dirkpieterse Co-authored-by: Arman Boyakhchyan --- .../10 UI Components/GridBase/1 Configuration/aiIntegration.md | 2 +- .../15 grids/CompositeKeyPair/CompositeKeyPair.md | 2 +- .../15 grids/ResponseStatusTexts/ResponseStatusTexts.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md b/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md index 0eae094cf2..d8f259b565 100644 --- a/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md +++ b/api-reference/10 UI Components/GridBase/1 Configuration/aiIntegration.md @@ -13,7 +13,7 @@ The DevExtreme {WidgetName} ships with the following AI features: - AI Columns - AI Assistant -To activate AI functionality, configure **aiIntegration** and specify {WidgetName} properties as follows: +To activate these AI features, configure **aiIntegration** and specify {WidgetName} properties as follows: - Assign *"ai"* to a column's [type](/api-reference/_hidden/dxDataGridColumn/type.md '{basewidgetpath}/Configuration/columns/#type') property to implement an AI Column. - Set **aiAssistant**.[enabled]({basewidgetpath}/Configuration/aiAssistant/#enabled) to `true` to activate the AI Assistant. diff --git a/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md b/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md index b9ad236db4..34b54258da 100644 --- a/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md +++ b/api-reference/40 Common Types/15 grids/CompositeKeyPair/CompositeKeyPair.md @@ -6,7 +6,7 @@ type: Object --- --- ##### shortDescription -A field/value pair used in composite DataGrid/TreeList keys. +A field/value pair used in composite DataGrid or TreeList keys. --- This object includes the following fields: diff --git a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md index d355f95c2d..00b42729d5 100644 --- a/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md +++ b/api-reference/40 Common Types/15 grids/ResponseStatusTexts/ResponseStatusTexts.md @@ -10,4 +10,4 @@ generateTypeLink: Response messages for each status. --- -This object can contain two string values: `success` and `failure`. \ No newline at end of file +This object can contain both `success` and `failure`. \ No newline at end of file