Skip to content

[data grid] How can I add a class in expand panel in row grouping? #16172

@achoud444

Description

@achoud444

Steps to reproduce

I would like to add a red vertical bar on the left side of certain rows based on specific conditions. For example, if some rows within a group do not have an email available, I want to display a red bar at the beginning of those rows.

While this can be done in the master-detail view (where we can customize the detail panel toggle), this approach doesn’t seem to be possible with row grouping, as there isn’t a toggle column available for such customization.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

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

Search keywords: How can I add a class in expand panel in grouping?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions