I have a grid with a large but reasonable amount of data (about 12,000 cells ... 340 columns and 34 rows). I know this looks like a side table, but it just happens that for our application, most likely there will be a number of columns and fewer rows.
When the data was about 2,300 cells (68 columns and 34 rows), it was fast enough for me to call it “immediate”. Not worried about anything.

A magnification of 5x caused an exponential increase in the initial rendering time. In particular, the creation of columns takes forever as part of the recursivelyCreateColumns method.

Switching to 10x takes a few minutes. The transition to 20 years, this did not happen, but after 5 minutes it still continued, and I suspect that it will take an hour or more.
My question is that although my code for creating a column / row / grid data for an AG-Grid is to handle runs in the 20 ms range, is there anything I can do to simplify the creation of AG-Grid columns? Maybe he only creates columns when necessary?
My grid setup is as follows:
var gridOptions = { enableCellExpressions: true, columnDefs: data.header, rowData: data.body.data, floatingTopRowData: data.body.floatingTopData, rowHeight: 25, headerHeight: 25, enableColResize: true, enableSorting: true, enableFilter: true, getNodeChildDetails: function(rowItem) { if(rowItem.items) { return { expanded: scope.gridOptions.rowData[0].something === rowItem.something, group: true, field: "something", key: rowItem.something, children: rowItem.items }; } return null; } };
performance javascript ag-grid
oooyaya
source share