Skip to content

Conversation

@anna-shakhova
Copy link
Contributor

…from dataSource (T1321187, T1308536)

@anna-shakhova anna-shakhova force-pushed the 26_1__T1308536_calc_group_value branch from 5aee64d to 60ce291 Compare February 12, 2026 12:07
@anna-shakhova anna-shakhova marked this pull request as ready for review February 12, 2026 12:09
@anna-shakhova anna-shakhova requested a review from a team as a code owner February 12, 2026 12:09
Copilot AI review requested due to automatic review settings February 12, 2026 12:09
@anna-shakhova anna-shakhova changed the title [WIP ]GridCore: fix calculateGroupValue comparison on apply group and sort … GridCore: fix calculateGroupValue comparison on apply group and sort … Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes an internal DataGrid ColumnsController mapping issue where grouping/sorting parameters coming from the DataSource could be matched to the wrong column when calculateGroupValue is specified as a string (field name), which could cause grouping state to be lost/shifted after actions like expandAll.

Changes:

  • Updated ColumnsController.updateSortingGrouping selector matching to correctly handle string calculateGroupValue and avoid mis-assigning group/sort indexes to referenced columns.
  • Added TestCafe e2e coverage for scenarios with string calculateGroupValue (including when the referenced field also exists as a separate column).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts Adjusts selector comparison and index assignment logic to prevent incorrect grouping/sorting mapping when calculateGroupValue is a string.
e2e/testcafe-devextreme/tests/dataGrid/common/grouping/grouping.ts Adds regression e2e tests for T1321187 and T1308536 covering expandAll behavior with string calculateGroupValue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant