-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Show header row for empty Datagrids #6087
Comments
The https://marmelab.com/react-admin/List.html#empty-empty-page-component |
The
I have several Datagrids in my app that will have default filters enabled, and no I feel this should be true in general, not just because my app has special requirements. I stand by my enhancement request for the |
I disagree that showing a header line with no body is better in general, but I understand that it may be better in some cases. About your points:
Also, the |
Is your feature request related to a problem? Please describe.
I don't understand why the decision was made to return null for the whole Datagrid if there are no rows to return. I would expect to still see the header row.
Describe the solution you'd like
Offer a property that allows me to specify whether or not to hide empty Datagrids.
Describe alternatives you've considered
It could be a boolean
hideWhenEmpty
(default to true for backwards compatibility).Additional context
react-admin/packages/ra-ui-materialui/src/list/Datagrid.js
Line 176 in 5b44d97
The text was updated successfully, but these errors were encountered: