I'm playing with ag-grid in Angular. I'd like to have some columns sortable and/or resizable and others not. I see in docs, that properties like sortable and resizable in columnDefs should work. But they don't. The only way I can make columns to be sortable and filterable is to add properties enableFilter and enableColResize in gridOptions like that:
gridOptions = {
defaultColDef: {
tooltip: (t: any) => { return t.value; }
},
overlayNoRowsTemplate: '<span></span>',
overlayLoadingTemplate: '<span></span>',
enableSorting:true,
enableFilter: true,
enableColResize: true,
domLayout: 'normal'
};
<ag-grid-angular
#agGrid
style="width: 100%; height: 335px;"
class="ag-theme-balham"
(modelUpdated)="onModelUpdated()"
(selectionChanged)="onSelectionChanged($event)"
[gridOptions]="gridOptions"
[columnDefs]="columnDefs"
[rowData]="rowData"
animateRows
rowSelection="single"
>
But when using that this way I'm not able to config specific columns to work the way I want it to work. Does anybody know, what's a problem here?