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.
- [Vuejs]-VueJS : Trigger function to fill up a select at the loading of the form
- [Vuejs]-Unable to access vue component from a jsp page
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
Source:stackexchange.com