View Full Version : How to hide column headers using Ext.apply() when gridpanel is already rendered.

28 Jan 2015, 8:31 AM
I wanted to remove the column headers on the fly (gridpanel already rendered)

Ext.apply(gridPanel, {hideHeaders:true});

This doesn't work.

I added gridPanel.doLayout() and gridPanel.doComponentLayout()... but column headers is still visible.

28 Jan 2015, 2:36 PM
Apply a CSS class to the grid. This isn't exactly the EXT way to do it, but it should work.

28 Jan 2015, 5:40 PM
I've done the CSS approach for now.

I'm wondering if this is a bug because other configs (width, hidden, etc.) are working but not hideHeaders.