11

I am using ui-grid for displaying data. I want to hide the column header. Is there any property for this cause? Thanks

4
  • 2
    Do you mean you wish to hide the header for a particular column or the entire header row, so it is just the data rows? Also, does "hide" mean "show as blank with no text" or "completely hide from view"? Commented Nov 19, 2014 at 3:40
  • 1
    Thanks for the response. I want to hide the entire header row (completely hide from the view) Commented Nov 19, 2014 at 4:13
  • 1
    It worked :) There was an option hideHeader:true which I set during the ui-grid specification. Thanks Commented Nov 19, 2014 at 4:28
  • 1
    I suggest you add that as an answer to your own question and accept it, then. That will prevent this question from showing up as unanswered, and allow other people to find the answer to your question quicker than you did. Commented Nov 19, 2014 at 4:52

3 Answers 3

11

Based on Angular-ui Change log

Breaking Changes

The hideHeader option has been changed to showHeader

To migrate, change your code from the following:

hideHeader: true

To:

showHeader: false

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

1 Comment

neither showHeader or hideHeader worked for me version:3.2.9. using @Rob Sedgwick approach with the 'blank' header template worked for me.
6

neither showHeader nor hideHeader did anything for me. I used this:

headerCellTemplate: '<div></div>'

Comments

0

This has been changed to showHeader:false in latest version of ui-grid (3.1.1)

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.