Skip to content

Commit 8cbffa0

Browse files
Grids AI Assistant: Add Final Final Updates (#8844)
1 parent b774277 commit 8cbffa0

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

api-reference/10 UI Components/dxDataGrid/9 Types/DataGridPredefinedCommands/DataGridPredefinedCommands.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ The following code snippet lists available commands with their arguments:
5656
keys: Array<string | number | Array<CompositeKeyPair>>;
5757
preserve: boolean;
5858
};
59-
selectByIndexes: {
59+
selectionByIndexes: {
6060
indexes: number[];
6161
mode: 'select' | 'deselect';
62+
scope: 'page' | 'allPages';
6263
};
6364
selectAll: {};
6465
deselectAll: {};

api-reference/40 Common Types/15 grids/PredefinedCommands/PredefinedCommands.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ The following code snippet lists available commands with their arguments:
5555
keys: Array<string | number | Array<CompositeKeyPair>>;
5656
preserve: boolean;
5757
};
58-
selectByIndexes: {
58+
selectionByIndexes: {
5959
indexes: number[];
6060
mode: 'select' | 'deselect';
61+
scope: 'page' | 'allPages';
6162
};
6263
selectAll: {};
6364
deselectAll: {};

concepts/05 UI Components/DataGrid/12 AI Assistant/15 Specifics and Best Practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Note the following AI Assistant specifics and best practices:
44

55
For instance, to select the last row on a [page](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/paging '/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/paging/'), the assistant calls the `selectByIndexes` command and uses the page size to specify an index. If the number of rows on the active page is smaller than the page size, the command fails.
66

7-
- AI Assistant may not preserve the results of executed commands of the same type. Specify if the AI should preserve or discard previous results in your requests (include keywords such as "also" or "only").
7+
- The AI Assistant may not preserve the results of previously executed commands of the same type. To preserve or discard previous results, specify this in your request with keywords such as "also" or "only".
88

99
- If {WidgetName} is bound to a large dataset, the `selectAll` command may increase the context size of requests beyond the limits of your AI service. The `selectAll` command adds all row keys to the request [context](/api-reference/40%20Common%20Types/15%20grids/AIAssistantRequestCreatingInfo/context.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Types/AIAssistantRequestCreatingEvent/#context') (in [onAIAssistantRequestCreating](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/onAIAssistantRequestCreating.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#onAIAssistantRequestCreating')). To avoid this behavior, you can activate **selection**.[deferred](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/selection/deferred.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/selection/#deferred').
1010

1111
- The assistant does not support certain actions that are only accessible in the component UI (for instance, it cannot expand/collapse groups).
1212

13-
- If you expect users to request certain commands in the AI Assistant, ensure the corresponding {WidgetName} feature is enabled to avoid command failures.
13+
- If users are likely to request specific commands in the AI Assistant, ensure that the corresponding {WidgetName} feature is enabled to prevent command failures.
1414

1515
#####See Also#####
1616
- [DataGridPredefinedCommands](/api-reference/10%20UI%20Components/dxDataGrid/9%20Types/DataGridPredefinedCommands '/Documentation/ApiReference/UI_Components/dxDataGrid/Types/DataGridPredefinedCommands/')

concepts/05 UI Components/TreeList/07 AI Assistant/15 Specifics and Best Practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Note the following AI Assistant specifics and best practices:
44

55
For instance, to select the last row on a [page](/api-reference/10%20UI%20Components/dxTreeList/1%20Configuration/paging '/Documentation/ApiReference/UI_Components/dxTreeList/Configuration/paging/'), the assistant calls the `selectByIndexes` command and uses the page size to specify an index. If the number of rows on the active page is smaller than the page size, the command fails.
66

7-
- AI Assistant may not preserve the results of executed commands of the same type. Specify if the AI should preserve or discard previous results in your requests (include keywords such as "also" or "only").
7+
- The AI Assistant may not preserve the results of previously executed commands of the same type. To preserve or discard previous results, specify this in your request with keywords such as "also" or "only".
88

99
- If {WidgetName} is bound to a large dataset, the `selectAll` command may increase the context size of requests beyond the limits of your AI service. The `selectAll` command adds all row keys to the request [context](/api-reference/40%20Common%20Types/15%20grids/AIAssistantRequestCreatingInfo/context.md '/Documentation/ApiReference/UI_Components/dxTreeList/Types/AIAssistantRequestCreatingEvent/#context') (in [onAIAssistantRequestCreating](/api-reference/10%20UI%20Components/dxTreeList/1%20Configuration/onAIAssistantRequestCreating.md '/Documentation/ApiReference/UI_Components/dxTreeList/Configuration/#onAIAssistantRequestCreating')).
1010

1111
- The assistant does not support certain actions that are only accessible in the component UI (for instance, it cannot expand/collapse groups).
1212

13-
- If you expect users to request certain commands in the AI Assistant, ensure the corresponding {WidgetName} feature is enabled to avoid command failures.
13+
- If users are likely to request specific commands in the AI Assistant, ensure that the corresponding {WidgetName} feature is enabled to prevent command failures.
1414

1515
#####See Also#####
1616
- [PredefinedCommands](/api-reference/40%20Common%20Types/15%20grids/PredefinedCommands '/Documentation/ApiReference/Common_Types/grids/PredefinedCommands/')

0 commit comments

Comments
 (0)