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

Kendo UI grid with Angular - Hide header row

3 Answers 2095 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Donna Stewart
Top achievements
Rank 1
Donna Stewart asked on 20 Nov 2015, 07:13 PM

How do I hide the complete header row for a grid?  I don't want any header/title to show for any column in the grid.  Preferably, I want the whole header row to be gone.  Is this possible and if so, how?

 Thanks for your help!

Donna

 

3 Answers, 1 is accepted

Sort by
1
Konstantin Dikov
Telerik team
answered on 24 Nov 2015, 08:50 AM
Hello Donna,

The easiest way for hiding the header of the grid will be with the following CSS:
<style>
    .k-grid-header{
      display: none;
    }
</style>

If you need to achieve this for particular Grid instance only, you could add custom CSS class to that widget and use it within the CSS selector above.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Tigga
Top achievements
Rank 1
Iron
answered on 20 Dec 2020, 11:27 PM
This worked. I have 3 partial views in one page, and though I put the style in only one of the partial views, it eliminated the header row in all the grids. How can I be more choosy?
1
Dimo
Telerik team
answered on 21 Dec 2020, 06:56 AM

Hi Tigga,

CSS rules can be targeted to specific HTML elements via suitable selectors. In your case, the easiest option is to use the ID of the Grid, or apply a custom CSS class to the Grid element (<div>). The resulting CSS rule should look like this:

 

#grid-id .k-grid-header {
  display: none;
}

/* or */

.grid-class .k-grid-header {
  display: none;
}

 

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Integration with other JS libraries
Asked by
Donna Stewart
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Tigga
Top achievements
Rank 1
Iron
Dimo
Telerik team
Share this question
or