[Vuejs]-Ag-Grid Clear Pinned columns function is not working

0👍

This is because the setColumnPinned method refers to the colId that is supplied. In this case, you don’t have a column with an id of Sample name, but you have a headerName with a value of Sample name.

To fix this, you just need to add colId declarations to your columnDefs objects.

0👍

In the end the solution to this was to use the: var colState = gridOptions.columnApi.getColumnState(); found here: ag-grid.com/javascript-grid-column-definitions

Leave a comment