Skip to content

Conversation

@Raushen
Copy link
Contributor

@Raushen Raushen commented Jan 22, 2026

No description provided.

@Raushen Raushen self-assigned this Jan 22, 2026
@Raushen Raushen requested a review from a team as a code owner January 22, 2026 18:37
Copilot AI review requested due to automatic review settings January 22, 2026 18:37
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

This PR fixes a bug (T1319739) where DataGrid columns become misaligned after adding or removing a column at runtime when repaintChangesOnly is enabled. The fix ensures that a full repaint is triggered when the column count changes, preventing header and data cell misalignment.

Changes:

  • Extracted repaint logic into a new needFullRepaint method in the data controller
  • Added detection for column count changes to trigger full repaint
  • Added integration tests for both adding and removing columns with repaintChangesOnly=true

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/devextreme/js/__internal/grids/grid_core/data_controller/m_data_controller.ts Adds needFullRepaint method to detect when full grid repaint is needed, including when column count changes
packages/devextreme/js/__internal/grids/grid_core/columns_controller/__tests__/columns_controller.integration.test.ts Adds integration tests verifying that adding/removing columns maintains correct alignment between headers and data cells

@Alyar666 Alyar666 self-requested a review January 23, 2026 10:25
e.group = columnsController.getGroupDataSourceParameters(!dataSource.remoteOperations().grouping);
}

private needFullRepaint(optionNames, changeTypes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we have an agreement to name private methods with _?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The modern code we write without underscore.
Earlier we wrote underscore to show the method is private but now we have Typescript and just the modifier "private")

Copilot AI review requested due to automatic review settings January 26, 2026 19:04
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

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

@Raushen Raushen merged commit 535ae9f into DevExpress:26_1 Jan 27, 2026
94 checks passed
Raushen added a commit to Raushen/DevExtreme that referenced this pull request Jan 27, 2026
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.

3 participants