I am using ng-grid
where i want to hide/show columns on external button click.
I tried this, but its not working
$scope.gridOptions.$gridScope.columns[0].toggleVisible()
I am using ng-grid
where i want to hide/show columns on external button click.
I tried this, but its not working
$scope.gridOptions.$gridScope.columns[0].toggleVisible()
Try using the ng-click directive
your html button could look like this
and your js like this