-
Notifications
You must be signed in to change notification settings - Fork 660
DataGrid - AI Column: Fix display of AI data during virtual scrolling #31876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataGrid - AI Column: Fix display of AI data during virtual scrolling #31876
Conversation
There was a problem hiding this 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
isCustomLoadingflag 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 |
...ges/devextreme/js/__internal/grids/grid_core/ai_column/controllers/m_ai_column_controller.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
No description provided.