This is pretty simple, I had an unlocked grid, and now I have a potentially locked grid, so there should be 1 API regardless of if the grid is locked or not to get the VISIBLE columns. This is being used as part of some export functionality.

I had to change my code in the following way to make it work.


//Works as an unlocked grid, fails as locked(only provides the locked columns)

grid.getColumnManager().headerCt.getVisibleGridColumns();


//Works with both grids.

grid.getVisibleColumnManager().getColumns();