Closed cluskii closed 3 years ago
I can't see your template, and in general it's better if you provide a stackblitz / codesandbox, no reason to paste the code here... helping me help you :)
Anyway, I can only assume you're using virtual scroll without providing a height to the grid.
With virtual scroll the height must be set because the data row section is virtual, hence it takes the size it gets. (fixed, %...)
You can also set the minDataViewHeight
, read here
The template is included (although quite short!). It was no After setting the [style.height]
, the rows became visible. Is virtual scroll enabled by default?
Thanks for your help though, much appreciated!
I've been trying to incorporate ngrid into my application, but I've encountered an issue where no rows seem to rendered. It's possible I've just missed something, but I can't work out what it might be, so it may be an issue. Would appreciate any help you can provide.
Thanks, Andrew
What is the expected behavior?
Rows should be rendered in the table.
What is the current behavior?
Header row is shown, but data rows are not rendered.
What are the steps to reproduce?
A minimal code for reproduction here:
module:
component:
template:
Result:
Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?
Is there anything else we should know?