0

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

1 Answer 1

2

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/.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.