I use ui-grid in one of my projects, and one of the requirements is to hide / show columns in the grid. Hiding columns works well, but then how can I show a hidden column?
After some searching, I found that in ng-grid there are showColumnMenu that provide the ability to show the column after hiding it, see this example, which I found
$scope.gridOptions = { data: 'myData', columnDefs: [{ field: "id", visible: false },{ field: "name", displayName : "name" },{ field: "age", displayname: "age", }] , multiSelect: false, showGroupPanel: true, selectedItems: [], showColumnMenu: true };
but in ui-grid using showColumnMenu does not work.
I was wondering if anyone knows how to show hidden columns.
Thanks,
angularjs angular-ui-grid
I3i0
source share