From 71f8377a2be62c93da29dae4306dcbdb69875e0d Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 19 May 2026 14:58:53 +0400 Subject: [PATCH 1/5] 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 2/5] 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 3/5] 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 4/5] 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 5/5] 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: {};