PDA

View Full Version : grid header row



Luka
6 Oct 2007, 4:12 AM
HI!

how do i hide header row in grid?

richardtallent
12 Oct 2007, 12:06 PM
Same question here... I have a grid with a single column and a collapsible title. The column header row is superfluous.

I think CSS is one solution, but that seems really hackish, there's no API hook for a CSS style attribute for the header row.

tryanDLS
12 Oct 2007, 12:54 PM
One way to do it

grid.getGridEl().select('.x-grid-header').setStyle('height',0)

para
18 Oct 2007, 8:11 AM
Tim's solution did not work for me. I decided to attempt a css solution instead.


this.grid = new Ext.grid.GridPanel({
...
cls: 'pei-grid',
...
});



.pei-grid .x-grid3-header {
display: none;
}


Works perfectly.