View Full Version : grid header row
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)
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.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.