-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 not rendering table? #3546
Comments
@mui-org/x should I transfer the issues to mui-x or just tag one of the x team? |
You can transfer it 👍 |
@NickWinston123 You have to either give a height to the container of the Here is your example with More details here: https://mui.com/components/data-grid/layout/#predefined-dimensions |
This was it, I am glad it is working thank you! |
Autoheight should be true by default if height is not specified. |
The height is set on the parent component, not on the DataGrid itself |
@flaviendelangle I have added autoHeight, suddenly test cases gets failed even though, can u pls check this comment - #1151 (comment) |
My datagrid only renders the header row in test. The entire datagrid renders just fine in the application. Data is generated from an API call, but I mock the data for testing. What am I missing? Here's my test:
Here's (an abbreviated version of) my datagrid:
|
@stone2dbone This issue gets closed in Jan 2022, if you face a bug please open another one. If your abbreviated version of your data grid works, consider the creation os a code sandbox, (you can edit this one: https://codesandbox.io/s/sdw7yn?file=/demo.tsx) It will simplify the exploration of your bug |
Duplicates
Latest version
Current behavior 😯
The DataGrid does not show any rows or data just the navigation buttons on the bottom.
Expected behavior 🤔
The DataGrid should show all of the data in the rows.
Steps to reproduce 🕹
Steps:
Context 🔦
Display my data. I had this issue happen in my previous project and I thought it was something I did when trying to learn everything so I made another project, setup reactjs and material ui and tried again and had the same issue.
This is my component that has the datagrid in it:
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: