Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ The following code snippet lists available commands with their arguments:
keys: Array<string | number | Array<CompositeKeyPair>>;
preserve: boolean;
};
selectByIndexes: {
selectionByIndexes: {
indexes: number[];
mode: 'select' | 'deselect';
scope: 'page' | 'allPages';
};
selectAll: {};
deselectAll: {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ The following code snippet lists available commands with their arguments:
keys: Array<string | number | Array<CompositeKeyPair>>;
preserve: boolean;
};
selectByIndexes: {
selectionByIndexes: {
indexes: number[];
mode: 'select' | 'deselect';
scope: 'page' | 'allPages';
};
selectAll: {};
deselectAll: {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Note the following AI Assistant specifics and best practices:

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.

- 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").
- 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".

- 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').

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

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

#####See Also#####
- [DataGridPredefinedCommands](/api-reference/10%20UI%20Components/dxDataGrid/9%20Types/DataGridPredefinedCommands '/Documentation/ApiReference/UI_Components/dxDataGrid/Types/DataGridPredefinedCommands/')
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Note the following AI Assistant specifics and best practices:

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.

- 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").
- 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".

- 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')).

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

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

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