I have a GridPanel
in Extjs
and i just want to remove or hide its header toolbar. (The toolbar where the title and the searchbox is in). I just want the Gridpanels
first element to be the column headers. How can I do it?
Asked
Active
Viewed 7,024 times
4

Abimaran Kugathasan
- 31,165
- 11
- 75
- 105

Chris
- 7,675
- 8
- 51
- 101
3 Answers
11
hideHeaders property of Ext.grid.GridPanel does the trick.
var grid = new.Ext.grid.GridPanel({
store: store,
hideHeaders: true,
width: 200,
height: 100,
}

slhsen
- 606
- 9
- 21
-
This is not what the question is about. – szym May 23 '13 at 10:43
3
Have you tried setting the header config option to false? See below example:
var grid = new Ext.grid.GridPanel({
store: store,
cm: cm,
header: false,
renderTo: 'mygrid',
width: 600,
height: 300
});

lee whitbeck
- 460
- 4
- 12
2
If you can't find a suitable config option, calling gridPanel.getTopToolbar().hide()
afterwards should do the trick.

Tommi
- 8,550
- 5
- 32
- 51