84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
How do I tell AgGrid not to shorten my column headers? By default I'd like to be able to see the full column headers when the grid loads and not have to resize them.
You can specify the minimum width of each column using minWidth a>. You can also set suppressSizeToFit to true to prevent AgGrid from calling api.sizeColumnsToFit(params).
// for specific column const columnDefs = [ { field: 'athlete', width: 150, suppressSizeToFit: true }, { field: 'age', width: 50, minWidth: 50 }, { colId: 'country', field: 'country', minWidth: 300 }, { field: 'year', width: 90 }, ]; // for all columns const defaultColDef = { suppressSizeToFit: true }
You can specify the minimum width of each column using minWidth a>. You can also set suppressSizeToFit to true to prevent AgGrid from calling api.sizeColumnsToFit(params).
Example: