Skip to content

GridCore data: Decompose _updateFocusedRowIfNeeded, delete _focusController - #35273

Open
bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:refactor/gridcore-decompose-update-focused-row-26_2
Open

bit-byte0 wants to merge 1 commit into
DevExpress:mainfrom
bit-byte0:refactor/gridcore-decompose-update-focused-row-26_2

Conversation

@bit-byte0

Copy link
Copy Markdown
Contributor

What

Moves the focused-row update logic out of the grid data controller and into the focus controller

How

Relocates the _updateFocusedRowIfNeeded method into FocusController and moves the keyboard-navigation controller reference it relied on down into the DataGrid focus extender

@bit-byte0
bit-byte0 requested a review from a team as a code owner September 19, 2026 05:03
@bit-byte0 bit-byte0 added the 26_2 label Sep 19, 2026
Copilot AI lite review requested due to automatic review settings September 19, 2026 05:03
@bit-byte0 bit-byte0 self-assigned this Sep 19, 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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Refactors focused-row update handling into FocusController while keeping DataGrid-specific keyboard navigation behavior local.

Changes:

  • Moves _updateFocusedRowIfNeeded to FocusController.
  • Removes the generic data-controller dependency.
  • Adds keyboard-navigation access to the DataGrid focus extender.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​focus/​m_focus.ts Owns focused-row update behavior in FocusController.
packages/​devextreme/​js/​__internal/​grids/​data_grid/​focus/​m_focus.ts Provides DataGrid-specific keyboard-navigation access.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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