I'm playing around with this angular plugin. Here's my issue - I'm setting the grid with no headers as default. When I want to set the grid header back, it doesn't work by changing the gridOptions.showHeader attribute. Here's my toggle code (I've added the refresh() once I saw it doesn't work without it but the refresh() doesn't help as well):
$scope.toggleHeader = function(){
$scope.gridOptions.showHeader = !$scope.gridOptions.showHeader;
$scope.gridApi.grid.refresh();
}
Here's a plnkr: http://plnkr.co/edit/eEzSH5hKUTZFbkxiruSt
Anyway to toggle the grid's header on and off?
EDIT: In order to show the motivation of such a change, I've modified my code a bit to use watchers on some gridStatus variable (which could be anything - in my case it's minimize):
http://plnkr.co/edit/1fX6ZuqUt7xANO1P7MMG