Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] renderCell params.row values on an auto-generated grouping row #12244

Closed
nurira opened this issue Feb 28, 2024 · 1 comment
Closed
Labels
component: data grid This is the name of the generic UI component, not the React module!

Comments

@nurira
Copy link

nurira commented Feb 28, 2024

Steps to reproduce

Link to live example

Current behavior

params.row.lastName and params.row.someOtherProperty are undefined within the renderCell call of an autogenerated grouping row.

Expected behavior

No response

Context

I'm trying to render a custom component using other properties on a row model (that don't have their own columns) for a particular column but also want to use that custom render for the grouping row as well.
The problem is that I can't access the row model in the grouping column.

Your environment

npx @mui/envinfo
    System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
  Binaries:
    Node: 20.9.0 - /usr/local/bin/node
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.10.2 - /usr/local/share/npm-global/bin/pnpm
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: latest => 11.11.4 
    @emotion/styled: latest => 11.11.0 
    @mui/icons-material: latest => 5.15.11 
    @mui/material: latest => 5.15.11 
    @mui/x-data-grid-generator: latest => 6.19.5 
    @mui/x-data-grid-premium: latest => 6.19.5 
    @types/react: latest => 18.2.60 
    react: latest => 18.2.0 
    react-dom: latest => 18.2.0 
    typescript: latest => 5.3.3 

Search keywords: rendercell datagrid params.row row model

@nurira nurira added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 28, 2024
@nurira nurira closed this as completed Feb 28, 2024
Copy link

⚠️ This issue has been closed.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.

How did we do @nurira?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 28, 2024
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants