Skip to content

T1338898 - DataGrid — Sticky group cell overlaps aligned group summary values when columnFixing.enabled is true - #36731

Open
bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:fix/T1338898-sticky-group-cell-summaries
Open

bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:fix/T1338898-sticky-group-cell-summaries

Conversation

@bit-byte0

@bit-byte0 bit-byte0 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What

DataGrid group rows keep aligned group summaries visible on horizontal scroll when columnFixing is enabled and no data column is fixed

How

In this case the pinned group cell gets a transparent background (background-clip: text), so summaries show through it. Group text keeps its own background and stays pinned

@bit-byte0
bit-byte0 requested a review from a team as a code owner December 2, 2026 10:59
@bit-byte0 bit-byte0 added the 27_1 label Dec 2, 2026
Copilot AI balanced review requested due to automatic review settings December 2, 2026 10:59
@bit-byte0 bit-byte0 self-assigned this Dec 2, 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.

🟡 Changes recommended

In RTL grids with multiple group levels and aligned summaries, the sticky offset lacks the needed left inset, causing unpinned group labels to scroll out of view.

1 open issue
What changed in this PR

Addresses DataGrid group cells covering aligned summaries during horizontal scrolling when column fixing is enabled without fixed data columns.

Changes:

  • Unpins eligible group cells while keeping their text sticky, including RTL positioning.
  • Extends padding and overflow styles across four themes.
  • Adds Jest regression tests and Playwright screenshot coverage.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​sticky_columns/​sticky_columns.ts Adds conditional unpinning and text offsets.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​sticky_columns/​dom.ts Adds sticky-class removal helper.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​sticky_columns/​__tests__/​group_summary.integration.test.ts Tests group-cell pinning and text positioning.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​__tests__/​__mock__/​model/​row/​group_row.ts Adds group-cell test accessor.
packages/​devextreme-scss/​scss/​widgets/​material/​dataGrid/​layout/​cell.scss Styles unpinned Material group cells.
packages/​devextreme-scss/​scss/​widgets/​generic/​dataGrid/​layout/​cell.scss Styles unpinned Generic group cells.
packages/​devextreme-scss/​scss/​widgets/​fluent/​dataGrid/​layout/​cell.scss Styles unpinned Fluent group cells.
packages/​devextreme-scss/​scss/​widgets/​fluent-next/​dataGrid/​layout/​cell.scss Styles unpinned Fluent Next group cells.
e2e/​playwright/​tests/​dataGrid/​sticky/​common/​withGrouping.spec.ts Adds LTR and RTL scrolling screenshots.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 2, 2026 12:01

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.

🟡 Changes recommended

When all groups are collapsed and the free-space row is hidden, empty column widths produce invalid NaN sticky offsets, causing group text to scroll away.

1 open issue
1 resolved since last review

Review effort: Balanced

const styleProps = normalizeOffset(offset);
const startOffset = visibleColumns
.slice(0, columnIndex)
.reduce((sum, { fixed }, index) => (fixed ? sum + visibleWidths[index] : sum), 0);
Copilot AI balanced review requested due to automatic review settings December 2, 2026 13:14

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.

🔵 Needs a closer look

Collapsed groups with a hidden free-space row yield empty column widths and invalid NaNpx sticky offsets, requiring a fallback to each column’s visibleWidth.

1 open issue

Review effort: Balanced

@bit-byte0
bit-byte0 force-pushed the fix/T1338898-sticky-group-cell-summaries branch from 67675b1 to 03a9fdf Compare December 2, 2026 13:28
Copilot AI balanced review requested due to automatic review settings December 2, 2026 13:28

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.

🟡 Changes recommended

Group cells can remain incorrectly pinned when sticky columns are disabled by virtual rendering, and collapsed groups can produce invalid NaNpx offsets when column widths are unavailable.

2 open issues

Review effort: Balanced

);
const hasFixedDataColumn = columns
.slice(groupCellStartIndex, columns.length - alignByColumnCellCount)
.some((column) => !column.command && Boolean(column.fixed));
@bit-byte0
bit-byte0 force-pushed the fix/T1338898-sticky-group-cell-summaries branch from 03a9fdf to d93851d Compare December 2, 2026 14:41
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:41

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.

🔵 Needs a closer look

The fixed-column check incorrectly counts sticky columns disabled by virtual rendering, causing unfixed group rows to retain opaque backgrounds and cover aligned summaries during scrolling.

2 open issues

Review effort: Balanced

This branch has not been deployed

No deployments
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