Skip to content

[dat grid] Pivot advanced demo has an issue with object as column or value #18915

@GabrielVooDB

Description

@GabrielVooDB

Steps to reproduce

Steps:

  1. Open this link to the demo: https://mui.com/x/react-data-grid/pivoting/#advanced-demo
  2. Enable Pivot
  3. Select Counterparty Country as a column or value for pivot

Current behavior

The text of the column is [Object object] if use as a column.
The text of the cell is empty if used as a value. It chooses size for its aggregation.

Expected behavior

Displaying the value with the flag would be nice, if its too complicated just having the correct value would be enought.
For the value in the cell I figure that maybe size doesn't make sense, but in that case having a custom aggregation could be interesting to show. Either way, it should be just an empty cell.

Context

Most of the field in our grid is an object and I wanted to see how the advanced demo deal with those.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Pivot

Order ID: 100223

Metadata

Metadata

Assignees

Labels

feature: PivotingRelated to the data grid pivoting featurescope: data gridChanges related to the data grid.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions