Skip to content

CardView - cardHeader.items.render does not work in React (T1328152)#34358

Merged
markallenramirez merged 1 commit into
DevExpress:mainfrom
markallenramirez:bug_T1328152/main
Jul 17, 2026
Merged

CardView - cardHeader.items.render does not work in React (T1328152)#34358
markallenramirez merged 1 commit into
DevExpress:mainfrom
markallenramirez:bug_T1328152/main

Conversation

@markallenramirez

Copy link
Copy Markdown
Contributor

See #34299

@markallenramirez markallenramirez self-assigned this Jul 17, 2026
@markallenramirez
markallenramirez requested a review from a team as a code owner July 17, 2026 10:23
Copilot AI review requested due to automatic review settings July 17, 2026 10:23

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.

Pull request overview

This PR fixes CardView’s React integration for cardHeader.items.* templates by propagating integrationOptions.templates down to nested internal widgets (e.g., the header Toolbar) so named templates can be resolved and rendered correctly.

Changes:

  • Extend the shared ConfigContext contract to include integrationOptions.templates.
  • Provide integrationOptions.templates from CardView options via MainView’s ConfigContext.Provider.
  • Add a TestCafe e2e test that validates a cardHeader item with a named template renders its content (T1328152).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/devextreme/js/__internal/grids/new/grid_core/core/config_context.ts Adds integrationOptions.templates to the configuration context used by internal Inferno wrappers.
packages/devextreme/js/__internal/grids/new/card_view/main_view.tsx Supplies integrationOptions.templates through ConfigContext for nested widgets within CardView.
e2e/testcafe-devextreme/tests/cardView/cardHeader.ts Adds regression coverage ensuring a named cardHeader item template renders expected content.

@markallenramirez
markallenramirez added this pull request to the merge queue Jul 17, 2026
Merged via the queue into DevExpress:main with commit d34614c Jul 17, 2026
103 checks passed
@markallenramirez
markallenramirez deleted the bug_T1328152/main branch July 17, 2026 11:18
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.

3 participants