Skip to content

Conversation

@dmlvr
Copy link
Contributor

@dmlvr dmlvr commented Dec 2, 2025

No description provided.

@dmlvr dmlvr self-assigned this Dec 2, 2025
@dmlvr dmlvr force-pushed the ai_column_25_2_is_empty_adaptive_row branch from bd841a4 to 4d5cbe9 Compare December 4, 2025 10:01
@dmlvr dmlvr marked this pull request as ready for review December 4, 2025 10:01
@dmlvr dmlvr requested a review from a team as a code owner December 4, 2025 10:01
Copilot AI review requested due to automatic review settings December 4, 2025 10:01
@dmlvr dmlvr changed the title ai column empty adaptive row DataGrid - AI Column is empty in the adaptive row Dec 4, 2025
@dmlvr dmlvr added the 25_2 label Dec 4, 2025
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 an issue where AI column values were not properly displayed in adaptive detail rows (the expandable rows shown when columns are hidden due to responsive layout). The problem occurred because the adaptive detail row rendering was attempting to recalculate AI column values using calculateCellValue(), but AI column values are stored in a cache and should be retrieved from the already-calculated row.values array.

Key Changes

  • Added special handling for AI columns in adaptive detail rows to retrieve values from the pre-calculated row.values array instead of recalculating them
  • Extracted value retrieval logic into a reusable _getValueFromCellOptions method
  • Added comprehensive E2E test to verify AI column values display correctly in adaptive detail rows

Reviewed changes

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

File Description
packages/devextreme/js/__internal/grids/grid_core/adaptivity/m_adaptivity.ts Added import for AI_COLUMN_NAME constant, created _getValueFromCellOptions helper method, and added conditional logic to use pre-calculated values for AI columns in adaptive detail rows
e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/adaptivity.functional.ts Updated fixture to use container with AI integration support and added new test case that verifies AI column values appear correctly in adaptive detail rows

…ity.functional.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dmitry Lavrinovich <52966626+dmlvr@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 4, 2025 10:18
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 2 out of 2 changed files in this pull request and generated 4 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dmitry Lavrinovich <52966626+dmlvr@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 4, 2025 10:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dmitry Lavrinovich <52966626+dmlvr@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dmitry Lavrinovich <52966626+dmlvr@users.noreply.github.com>
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 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings December 4, 2025 12:04
dmirgaev
dmirgaev previously approved these changes Dec 4, 2025
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 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings December 4, 2025 13:20
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 4 out of 4 changed files in this pull request and generated 1 comment.

delete (window as any).aiResolve;
});

test('The AI column should have value in the adaptive detail row', async (t) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the reason to move this test up? I wonder if it can be a problem for future us (=

Copy link
Contributor Author

@dmlvr dmlvr Dec 5, 2025

Choose a reason for hiding this comment

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

This is not key change for test. The key change is fixture without disablePageReloads in the test file.

I moved test to the bottom of the file and it's green.

Copilot AI review requested due to automatic review settings December 5, 2025 07:43
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 4 out of 4 changed files in this pull request and generated 1 comment.

@dmlvr dmlvr merged commit b768d5f into DevExpress:25_2 Dec 5, 2025
120 of 122 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