Skip to content

AI Assistant: selectAll / deselectAll command ignores selectAllMode#33933

Open
dmirgaev wants to merge 1 commit into
DevExpress:26_1from
dmirgaev:26_1__ai_assistant_select_all
Open

AI Assistant: selectAll / deselectAll command ignores selectAllMode#33933
dmirgaev wants to merge 1 commit into
DevExpress:26_1from
dmirgaev:26_1__ai_assistant_select_all

Conversation

@dmirgaev

@dmirgaev dmirgaev commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dmirgaev dmirgaev self-assigned this Jun 9, 2026
Copilot AI review requested due to automatic review settings June 9, 2026 21:10
@dmirgaev dmirgaev requested a review from a team as a code owner June 9, 2026 21:10
@dmirgaev dmirgaev added the 26_1 label Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the DataGrid AI assistant command descriptions to ensure “select all / deselect all” requests are routed to the correct command depending on selection.selectAllMode, especially when the user asks for “current/visible page” while selectAllMode = "allPages".

Changes:

  • Expanded selectionByIndexes guidance to cover “select/deselect all on current page” scenarios when selectAllMode = "allPages".
  • Refined selectAll / deselectAll descriptions to explicitly restrict their use to cases where the user-requested scope matches selectAllMode.

Comment on lines +227 to +229
description: 'Select rows. Scope depends on selection.selectAllMode: "allPages" (default) selects across every page; "page" selects only the currently rendered page. If a filter is applied, only rows matching the filter are selected. '
+ 'Use this command ONLY when the scope the user asks for matches selection.selectAllMode: for an unqualified "select all rows" request when selectAllMode is "allPages", or for "select all rows on the current/visible page" when selectAllMode is "page". '
+ 'If the user asks to select all rows on the CURRENT/VISIBLE page but selectAllMode is "allPages", do NOT use this command (it would select every page) — instead use selectByIndexes with scope "page", mode "select", and indexes listing every row on the current page.',
Comment on lines +250 to +253
description: 'Deselect rows. Scope depends on selection.selectAllMode: "allPages" (default) deselects across every page; "page" deselects only the currently rendered page. If a filter is applied, only rows matching the filter are deselected. '
+ 'Use this command ONLY when the scope the user asks for matches selection.selectAllMode: for an unqualified "deselect all rows" request when selectAllMode is "allPages", or for "deselect all rows on the current/visible page" when selectAllMode is "page". '
+ 'If the user asks to deselect all rows on the CURRENT/VISIBLE page but selectAllMode is "allPages", do NOT use this command (it would deselect every page) — instead use selectByIndexes with scope "page", mode "deselect", and indexes listing every row on the current page. '
+ 'To clear selection across all pages regardless of selectAllMode, use clearSelection.',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants