View Full Version : Panel not expanding-collapsing when item grid panel have headerCt is hidden

10 Sep 2016, 12:59 AM

I am not sure its a bug or missing something. Please guide.

Plateform : Extjs 4.2.1
Browser: Chrome, FF


I have a collapsible panel and inner item is a grid. In some cases store have no data and in that case I don't want to show grid column header, its working. But when I try to collapse / expand the panel. Its not toggling at all.

for now I am hiding the column header using below snippet:

grid.headerCt.setVisible(grid.store.count() !== 0);

Here is the fiddle:


Any help will be appreciated =D>=D>

11 Sep 2016, 2:02 AM
Never mind, I achieved the same with below config on grid itself

hideHeaders: (store.data && store.data.length == 0 ? true : false)

Gary Schlosberg
12 Sep 2016, 5:48 AM
Thanks for following up. Yes, that seems to be the way to go.