Relative Content

Tag Archive for ag-gridag-grid-react

How to auto size all columns to fit the cell contents width in aggrid v32?

I was previously using aggrid v27 and to auto size the columns I used params.api.autoSizeAllColumns(); in onFirstDataRendered() function. After upgrading to v32, this is not working. In the migration guide it is mentioned that “Column API is now removed. API methods previously available via Column API are now available in Grid API instead”. I tried locating the function and using it from gridApi but it doesn’t seem to be working.

AGGrid – Pause updates to grid when user is scrolling

I’m using AgGrid in React which gets frequent updates from a server. If I wanted to scroll down to analyze a specific row, it’s made difficult as the grid is constantly adding new rows and pushing the row I want to view down.