Skip to content

DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839)#32757

Open
markallenramirez wants to merge 14 commits intoDevExpress:26_1from
markallenramirez:bug_T1293839/26_1
Open

DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839)#32757
markallenramirez wants to merge 14 commits intoDevExpress:26_1from
markallenramirez:bug_T1293839/26_1

Conversation

@markallenramirez
Copy link
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 10:01
@markallenramirez markallenramirez requested a review from a team as a code owner March 3, 2026 10:01
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

Adds an E2E regression test to ensure DataGrid renders the “No data” text after filtering a lookup column, covering the scenario described in the PR title.

Changes:

  • Import List TestCafe model to interact with the lookup dropdown.
  • Add a new screenshot-based TestCafe test reproducing “lookup filter + text filter => no data” state.

Comment on lines +40 to +48
const dataGrid = new DataGrid(GRID_CONTAINER);
const filterRow = dataGrid.getHeaders().getFilterRow();
const nameFilterCell = filterRow.getFilterCell(0);
const nameFilterEditor = nameFilterCell.getEditorInput();
const lookupFilterCell = filterRow.getFilterCell(1);

// act
await t.click(lookupFilterCell.element);
const lookupList = new List(OVERLAY_SELECTOR);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The test interacts with the filter row immediately after creating the widget, but doesn’t assert the grid is ready first. Please add an await t.expect(dataGrid.isReady()).ok(); (or equivalent) before clicking/typing to avoid timing-related failures on slower CI runs.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not needed

Copy link
Contributor

Choose a reason for hiding this comment

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

However, it is recommended to add this check since data is always loaded asynchronously (by default, within 30ms). Failure to do so may result in flickering tests.

@markallenramirez markallenramirez changed the title DataGrid - Fix the "No data" text not being shown when a lookup column is filtered DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839) Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 11:53
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 2 comments.

Copilot AI review requested due to automatic review settings March 4, 2026 12:35
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 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings March 5, 2026 08:15
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 3 changed files in this pull request and generated no new comments.

This reverts commit e66ecca.
Copilot AI review requested due to automatic review settings March 6, 2026 12:04
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 3 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines +40 to +48
const dataGrid = new DataGrid(GRID_CONTAINER);
const filterRow = dataGrid.getHeaders().getFilterRow();
const nameFilterCell = filterRow.getFilterCell(0);
const nameFilterEditor = nameFilterCell.getEditorInput();
const lookupFilterCell = filterRow.getFilterCell(1);

// act
await t.click(lookupFilterCell.element);
const lookupList = new List(OVERLAY_SELECTOR);
Copy link
Contributor

Choose a reason for hiding this comment

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

However, it is recommended to add this check since data is always loaded asynchronously (by default, within 30ms). Failure to do so may result in flickering tests.


// act
await t.click(lookupFilterCell.element);
const lookupList = new List(OVERLAY_SELECTOR);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor comment: I suggest creating a getLookup/getSelectBox method at the FilterCell model level, which will return the SelectBox model. This model has the necessary API for testing.

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.

3 participants