PDA

View Full Version : grid header row


Luka
10-06-2007, 07:12 AM
HI!

how do i hide header row in grid?

richardtallent
10-12-2007, 03: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
10-12-2007, 03:54 PM
One way to do it
grid.getGridEl().select('.x-grid-header').setStyle('height',0)

para
10-18-2007, 11: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.