Skip to content

Fixes the use of DataGrid Template Contexts for ExtraProperties#25466

Merged
maliming merged 1 commit into
abpframework:rel-10.3from
carlosv14:bugfix/blazorise-datagrid-template-context
May 23, 2026
Merged

Fixes the use of DataGrid Template Contexts for ExtraProperties#25466
maliming merged 1 commit into
abpframework:rel-10.3from
carlosv14:bugfix/blazorise-datagrid-template-context

Conversation

@carlosv14
Copy link
Copy Markdown
Contributor

Description

Resolves #25465

TODO: As per Blazorise migration docs DataGrid Template Contexts now receive context objects instead of the raw row item and any code that assumes context is TItem should be updated. So the line var entity = context as IHasExtraProperties; should be var entity = context.Item as IHasExtraProperties; otherwise entity is null and propertyValue is also null.

Checklist

  • I fully tested it as developer
  • I documented it (or no need to document or I will create a separate documentation issue)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 23, 2026

CLA assistant check
All committers have signed the CLA.

@maliming
Copy link
Copy Markdown
Member

Hi @carlosv14, thanks for the fix!

Could you change the base branch of this PR from dev to rel-10.3? Since the issue was reported on 10.3, landing the fix on the oldest supported release branch is preferred — ABP's auto-merge bot will then forward it to rel-10.4 and dev automatically.

You can change the base branch via the "Edit" button next to the PR title on GitHub.

Thanks!

@carlosv14 carlosv14 changed the base branch from dev to rel-10.3 May 23, 2026 04:28
@carlosv14
Copy link
Copy Markdown
Contributor Author

carlosv14 commented May 23, 2026

Hi @maliming changed the base branch as requested. Thanks!

@maliming maliming force-pushed the bugfix/blazorise-datagrid-template-context branch from d84c563 to 3c000cf Compare May 23, 2026 05:01
@maliming maliming requested a review from Copilot May 23, 2026 05:03
@maliming maliming added this to the 10.3-patch milestone May 23, 2026
Copy link
Copy Markdown
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

Updates AbpExtensibleDataGrid to work with Blazorise 2.0+ DataGrid template contexts, where the template context is a context object (with an Item) rather than the row item itself. This restores rendering of ExtraProperties values in grids (fixing the regression reported in #25465).

Changes:

  • Use context.Item (instead of context) when accessing the row entity for ExtraProperties rendering.

@maliming maliming merged commit d3c2181 into abpframework:rel-10.3 May 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbpExtensibleDataGrid is not displaying extra properties after update to Blazorise 2.0

4 participants