Skip to content

Conversation

@Alyar666
Copy link
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this Nov 27, 2025
Copilot AI review requested due to automatic review settings November 27, 2025 23:50
@Alyar666 Alyar666 requested a review from a team as a code owner November 27, 2025 23:50
Copilot finished reviewing on behalf of Alyar666 November 27, 2025 23:52
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 the display of AI-generated data in DataGrid columns during virtual scrolling. When users scroll through a virtualized DataGrid with AI columns, the grid now properly detects viewport changes and sends AI requests for newly rendered rows.

Key Changes:

  • Added viewport change detection mechanism to trigger AI requests during virtual scrolling
  • Introduced isCustomLoading flag to distinguish between AI loading and default grid loading states
  • Enhanced test infrastructure to support AI column virtual scrolling tests

Reviewed changes

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

Show a summary per file
File Description
packages/testcafe-models/dataGrid/index.ts Updated LoadPanel selector to use dx-loadpanel class; added data and dataIndex to visible rows API; added apiPageIndex() method for testing
packages/devextreme/testing/helpers/gridBaseMocks.js Added isCustomLoading() mock method to support testing custom loading states
packages/devextreme/js/__internal/grids/grid_core/virtual_scrolling/m_virtual_scrolling.ts Made isViewportChanging() public with fallback to base implementation; updated setLoading() to respect custom loading state
packages/devextreme/js/__internal/grids/grid_core/data_controller/m_data_controller.ts Added isCustomLoading() getter and isViewportChanging() extension point for virtual scrolling
packages/devextreme/js/__internal/grids/grid_core/ai_column/controllers/m_ai_column_controller.ts Added viewport change listener to send AI requests during virtual scrolling; refactored request logic into reusable sendRequests() method
e2e/testcafe-devextreme/tests/dataGrid/common/markup/markup.ts Updated test to use getContent() method instead of content property on LoadPanel
e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/virtualScrolling.functional.ts Added comprehensive tests for AI column behavior during virtual scrolling with and without page index changes
e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/pages/containerWithAIIntegration.html Added new test page that includes AI integration library for testing AI-related features

Copilot AI review requested due to automatic review settings November 28, 2025 09:52
Copilot finished reviewing on behalf of Alyar666 November 28, 2025 09:54
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 8 out of 8 changed files in this pull request and generated 1 comment.

@Alyar666 Alyar666 merged commit ddd6407 into DevExpress:25_2 Dec 1, 2025
98 of 99 checks passed
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