I am using ag-grid-enterprise.js version 24.0.0, and this problem also exists in version 23.0.0. If the columnDefs headerName is different than the field, then the column is not selected by default in the ag-grid Columns Tool Panel. Is there a way around this?
Here is my configuration:
gridOptions = {
columnDefs: [
enablePivot: true,
enableRowGroup: true,
field: 'retail_env',
headerName: 'Retail Environment'
],
sideBar: true,
pivotMode: true,
pivotPanelShow: 'always'
}
When headerName is the same as field, the column IS selected properly in the columns tool panel.
This looks like a bug in ag-grid, but I can't tell for sure.
I would appreciate any help you might have!