Skip to content

Grids: type m_grid_view - #35598

Open
anna-shakhova wants to merge 3 commits into
DevExpress:mainfrom
anna-shakhova:type_grid_view_main
Open

anna-shakhova wants to merge 3 commits into
DevExpress:mainfrom
anna-shakhova:type_grid_view_main

Conversation

@anna-shakhova

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.

🟡 Changes recommended

The master-detail resize callback can call .done() on an undefined result when the detail grid becomes invisible.

1 open finding
What changed in this PR

Adds stronger TypeScript typing to grid view and resizing logic while preserving existing behavior.

Changes:

  • Types grid view controllers, methods, deferreds, and view lookups.
  • Replaces legacy iterator patterns with typed array operations.
  • Updates master-detail handling for the typed updateDimensions result.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​views/​m_grid_view.ts Adds types and modernizes grid sizing/view logic.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​master_detail/​m_master_detail.ts Adapts master-detail resizing to the new return type.

🧠 Review effort: Balanced


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

@anna-shakhova
anna-shakhova marked this pull request as ready for review October 9, 2026 14:20
@anna-shakhova
anna-shakhova requested a review from a team as a code owner October 9, 2026 14:20
Copilot AI balanced review requested due to automatic review settings October 9, 2026 14:20
): ModuleType<ResizingController> => class AdaptivityResizingViewControllerExtender extends Base {
public dispose() {
super.dispose.apply(this, arguments as any);
clearTimeout(this._updateScrollableTimeoutID);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

_updateScrollableTimeoutID was never set, so remove unnecessary method overload

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.

🟢 Approval recommended

The typing refactor preserves existing behavior and adds focused coverage for the affected width calculations.

0 open findings

1 resolved since last review

🧠 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