Removing headertoolbar of GridPanel in Extjs

Chris picture Chris · Mar 31, 2011 · Viewed 7k times · Source

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?

Answer

slhsen picture slhsen · Apr 7, 2011

hideHeaders property of Ext.grid.GridPanel does the trick.

var grid = new.Ext.grid.GridPanel({
    store: store,
    hideHeaders: true,
    width: 200,
    height: 100,
}