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

[data grid] overriding footerTotalVisibleRows for localeText doesn't work #16365

Closed
kblazeski opened this issue Jan 28, 2025 · 2 comments
Closed
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Pagination Related to the data grid Pagination feature

Comments

@kblazeski
Copy link

kblazeski commented Jan 28, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/react-udsgfhvn?file=Demo.tsx
  2. The footerTotalVisibleRows is set in the localeText property in the DataGrid, but the changes are not shown on the UI

Current behavior

Setting the footerTotalVisibleRows in the localeText prop in DataGrid doesn't reflect the changes on the UI.

Expected behavior

Setting the footerTotalVisibleRows in the localeText prop in DataGrid should reflect the changes on the UI.

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: data grid, localeText, localization, footerTotalVisibleRows

@kblazeski kblazeski added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 28, 2025
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Jan 28, 2025
@michelengelen
Copy link
Member

This is expected behavior, as the visibleRowsCount is only show when there is no pagination present. This is the default for Pro/Premium, but not for the MIT version (it cannot be disabled). That's why its not showing. Thanks for taking the time to open an issue here anyways!

@michelengelen michelengelen added feature: Pagination Related to the data grid Pagination feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer bug 🐛 Something doesn't work labels Jan 29, 2025
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@kblazeski How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

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! feature: Pagination Related to the data grid Pagination feature
Projects
None yet
Development

No branches or pull requests

2 participants