Reputation: 353
I'm trying to hide/Show columns in Ag grid.
Below is my code for hiding/showing columns
this.gridOptions.columnApi.setColumnsVisible(["Col1", "Col2"], true);
this.gridOptions.columnApi.setColumnsVisible(["Col3", "Col4"], false);
How do i find, if the columns are already hidden or visible ? based on the current state of the columns, i need to execute the above code. Please help
Upvotes: 2
Views: 9337