user25759
user25759

Reputation: 3

ng-grid. How to hide group column?

How to hide group column in data area of ng-grid control (angular-ui)?

for example:

data has two columns: name, age I want see result like this:

-27 (1)
  Martin 
-29 (2)
  Helga
  Alex

Upvotes: 0

Views: 3279

Answers (1)

nymo
nymo

Reputation: 542

In the column definitions, set the field's visibility to false:

$scope.gridOptions = {
    columnDefs: [{ field: 'age', visible: false },
                  ... ],
    ...,
    groups: ['age'],
}

See the ColumnDefs Options at http://angular-ui.github.io/ng-grid/.

Upvotes: 2

Related Questions