11/29/2023 0 Comments Ag grid domlayout![]() I believe this would eliminate slowness in IE, like when the grid has a reasonable height set. ![]() ![]() It would be ideal if the implemented solution was able to maintain the row virtualization when vertical scrolling is disabled. With a test of 1000s of records we've seen nearly exponential slowness in IE Chrome works great :) In this tutorial, we briefly go through setting up the configuration of ag-grid, and investigate several approaches on how to customize ag-grid styles in. To have the grid auto-size to fit the provided rows, set the. This will give bad performance if many rows (ie if you render 10,000 rows into the DOM, your browser will probably crash), however for 10 or 20 rows, this may be preferred. This is my html :
ag-grid-angular grid id'grid-printable' style'width: 100 height: 100 ' class'ag-theme-blue grid-printable' (gridReady)'onGridReady (grid)' rowData.
I assume this is related to row virtualization and IE managing memory and drawing DOM elements quite poorly.Įxample: With about 320 rows (height: 7000px) and ~20 columns the below calls takes about 2seconds to execute and an additional 3-6seconds for IE to stop drawing and give control back to the user. Some applications will want to render all the rows in the grid and not use and scrolls inside the grid. The autoHeight setting of domLayout means that the grid's height is set to fit the number of rows so no vertical scrollbar is provided by the grid. I'm trying to print a grid but the setDomLayout () method is not recognize. We are seeing this lag when setting the data source on page load and anytime we change column visibility to true. Stack Overflow is leveraging AI to summarize the most relevant questions and answers from the community, with the option to ask follow-up questions in a conversational format. Any configuration supported by the gridOptions dictionary can. Use this class to help AgGrid configuration. We are currently implementing a workaround where we calculate the height each time it is changed, apply that height to the gridOptions containing div, and then call doLayout() (forPrint seems almost identical).Ī concerning negative side effect to setting the height to fit all containing rows is that the rendering time in IE is quite awful. Auxiliary class that builds gridOptions dictionary.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |