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

[Solved] Solution for hidding the Grid Header

2 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 15 Jun 2011, 10:46 AM
Hi Guys,

I've noticed quite a few people on here asking how to hide the MVC Grid header only to realise there isn't any Telerik direct functionality (that I'm aware of).

A really easy fix to this is to create a very simple style as follows, and setting the Grid .Name attribute, then starting the style with that same name.  This will remove the grid header nicely.

<style> 
    #GridName table thead 
    
        display: none
    }
</style>
 

2 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 01 Dec 2011, 07:30 PM
For those reading this and who want to hide the grid headers for nested grids, the solution is a little different, Each nested grid needs a unique id, so you'll need use some css wildcard magic.

Adding this to your view would hide the headers ONLY for grids whose id starts with children or GrandChildren.

<style> 
    *[id*='Children'] table thead { display: none; }
    *[id*='GrandChildren'] table thead { display: none; }
</style>
0
Narasimha
Top achievements
Rank 1
answered on 06 Jul 2012, 10:17 AM
 this script is enough for hiding the telerik grid header.
<script type="text/javascript">
    $
(".t-grid-header").css('display', 'none');
</script>
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Narasimha
Top achievements
Rank 1
Share this question
or