-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Setting height: 100% causes the grid to load and render all data. #878
Comments
it's usually a CSS issue for you. the grid will fill the height of the div you give it. see the note on % height here: |
Well, I'm using a clean angular 1 boilerplate for testing this. If I set the grid's height to absolute pixel value, it initializes the grid with 20K results immediately. |
as i mentioned, its' your css. when you use %height, you have to be mindful of the height of the parent div also (especially if you don't set it). to get it working, drop the ag-grid bit (but leave the div in) and observe that your %height doesn't work as you think it does, the div will scroll way down your page. |
has fixed already? |
Is there a way to troubleshoot this because I'm getting horrible performance and every parent has a height of 100% set. |
Hello,
I have an object with around 20K results, which initializes the grid as follows:
<div ag-grid="gridOptions" class="ag-fresh" style="height: 100%;"></div>
The Chrome browser crashed while rendering the grid (the transform function took ~200ms).
But when I've set:
<div ag-grid="gridOptions" class="ag-fresh" style="height: 850px;"></div>
it worked blazing fast.
Yet, I need to set the height to 100% of the
div
containing the grid's element.Am I using this in the wrong way or is it a bug?
The text was updated successfully, but these errors were encountered: