Skip to content

DataGrid: Fix the navigateToRow method when navigating down to the bottom row with virtual scrolling enabled#33644

Open
Alyar666 wants to merge 4 commits into
DevExpress:26_1from
Alyar666:T1220800_part1_26_1
Open

DataGrid: Fix the navigateToRow method when navigating down to the bottom row with virtual scrolling enabled#33644
Alyar666 wants to merge 4 commits into
DevExpress:26_1from
Alyar666:T1220800_part1_26_1

Conversation

@Alyar666
Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this May 20, 2026
@Alyar666 Alyar666 requested a review from a team as a code owner May 20, 2026 09:45
Copilot AI review requested due to automatic review settings May 20, 2026 09:45
Copy link
Copy Markdown
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 addresses an issue in DataGrid virtual scrolling where navigateToRow could scroll incorrectly when navigating down toward the last rows (especially with large datasets/virtual content scaling).

Changes:

  • Exposes/threads getContentOffset through virtual scrolling controllers/adapters with updated typing, and adjusts offset calculation precision.
  • Adds TestCafe model helpers to target data rows/cells directly.
  • Adds an e2e regression test covering navigateToRow with virtual scrolling on a large dataset (T1220800).

Reviewed changes

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

Show a summary per file
File Description
packages/testcafe-models/dataGrid/index.ts Adds getDataRows / getDataCells selector helpers for tests.
packages/devextreme/js/__internal/grids/grid_core/virtual_scrolling/types.ts Introduces a shared ContentOffsetType union type.
packages/devextreme/js/__internal/grids/grid_core/virtual_scrolling/m_virtual_scrolling.ts Makes getContentOffset publicly available on adapter/controller to support virtual scrolling calculations.
packages/devextreme/js/__internal/grids/grid_core/virtual_scrolling/m_virtual_scrolling_core.ts Refines offset computation and types getContentOffset in VirtualScrollController.
e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts Adds a regression test for navigateToRow with virtual scrolling and large data.

Comment thread packages/testcafe-models/dataGrid/index.ts Outdated
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts Outdated
@Alyar666 Alyar666 force-pushed the T1220800_part1_26_1 branch from 94065bc to 92eddf6 Compare May 20, 2026 13:55
Copilot AI review requested due to automatic review settings May 20, 2026 13:57
Copy link
Copy Markdown
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 10 changed files in this pull request and generated 3 comments.

Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts
@Alyar666 Alyar666 force-pushed the T1220800_part1_26_1 branch from 78f5a65 to 20fa7e9 Compare May 20, 2026 15:24
Copilot AI review requested due to automatic review settings May 20, 2026 20:56
@Alyar666 Alyar666 force-pushed the T1220800_part1_26_1 branch from 20fa7e9 to 6981109 Compare May 20, 2026 20:56
Copy link
Copy Markdown
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 10 changed files in this pull request and generated 1 comment.

Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts
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.

2 participants