This is a migrated thread and some comments may be shown as answers.

Hide Grid Header not working in css

1 Answer 260 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cynthia
Top achievements
Rank 1
Cynthia asked on 10 Oct 2018, 07:39 PM

Hi,

I have searched for an answer about this but the only thing I have found isn't working for me.  The post I found suggests this:

Posted 24 Nov 2015Link to this post
The easiest way for hiding the header of the grid will be with the following CSS:
<style>
    .k-grid-header{
      display: none;
    }
</style>

I tried this and still no luck.  This also happened when I tried to change a style in the panelbar.  The solution always seems to say to control it through the class in the css.  The problem is that I am using the bootstrap theme so anything I do in the css is being overwritten by this theme.  Should I not use this theme?  Or is there a way to do both?  I have also tried the !important but that doesn't work either.

Everytime I save the css or the template the display gets set back to flex.

div.k-grid-footer, div.k-grid-header {
display: flex;
flex-direction: row;
align-items: stretch;
}

Thank you,

Cynthia

 

1 Answer, 1 is accepted

Sort by
0
Cynthia
Top achievements
Rank 1
answered on 10 Oct 2018, 08:12 PM
Nevermind I finally found it. [hideHeader]="true".  Frustrating.
Tags
General Discussions
Asked by
Cynthia
Top achievements
Rank 1
Answers by
Cynthia
Top achievements
Rank 1
Share this question
or