Skip to content

T1329677 DataGrid - Column width changes are not applied immediately#34325

Draft
nightskylark wants to merge 4 commits into
DevExpress:mainfrom
nightskylark:T1329677
Draft

T1329677 DataGrid - Column width changes are not applied immediately#34325
nightskylark wants to merge 4 commits into
DevExpress:mainfrom
nightskylark:T1329677

Conversation

@nightskylark

Copy link
Copy Markdown
Contributor

No description provided.

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

This PR addresses a DataGrid sizing/resizing issue where column width updates may not be applied immediately by refactoring parts of the grid’s column synchronization flow (best-fit toggling, max-width handling) and tightening selection-range handling used during temporary layout measurement. It also includes a small TypeScript-typing workaround in the Popover escape-key handler.

Changes:

  • Refactors ResizingController._synchronizeColumns to use a temporary best-fit enable/restore helper, normalize group expand column widths, and centralize max-width set/clear logic.
  • Introduces a typed SelectionRange contract and updates selection-range getters/setters to use explicit sentinel values.
  • Adjusts Popover overlay-stack comparison typing to avoid a TypeScript “no overlap” error.

Reviewed changes

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

File Description
packages/devextreme/js/__internal/ui/popover/popover.ts Tweaks overlay stack top-check typing in ESC key handler.
packages/devextreme/js/__internal/grids/grid_core/views/m_grid_view.ts Refactors grid column synchronization/best-fit/maxWidth handling related to resizing.
packages/devextreme/js/__internal/grids/grid_core/m_utils.ts Adds SelectionRange type and makes selection-range APIs more explicit/typed.

Comment thread packages/devextreme/js/__internal/ui/popover/popover.ts Outdated
}
return undefined;
});
private _synchronizeColumns():void {
Comment thread packages/devextreme/js/__internal/grids/grid_core/m_utils.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants