Hide column header in ui-grid AngularJS
Asked Answered
A

3

11

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

Acrylyl answered 19/11, 2014 at 3:15 Comment(4)
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"?Film
Thanks for the response. I want to hide the entire header row (completely hide from the view)Acrylyl
It worked :) There was an option hideHeader:true which I set during the ui-grid specification. ThanksAcrylyl
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.Film
R
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

Raymonderaymonds answered 24/12, 2014 at 8:24 Comment(1)
neither showHeader or hideHeader worked for me version:3.2.9. using @Rob Sedgwick approach with the 'blank' header template worked for me.Cyclades
T
6

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

headerCellTemplate: '<div></div>'
Tims answered 24/11, 2016 at 16:41 Comment(0)
P
0

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

Plenum answered 11/5, 2016 at 11:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.