View Full Version : Toggling visibility of GridPanel header at runtime

10 Jan 2012, 5:52 AM
I have also posted this question in Ext2 forum. I am in urgent need of some help, please excuse my crossposting . Thanks!

I have a GridPanel which should load a maximum number of resources. If there are more resources available, than I want to show, I want to enable the panel's header/title to show some texte like "more items available - display cut off".

My problem is: I can set the header to be hidden oder shown in the config options, but how can I change the visibility at runtime, specificially just when the grid's store has loaded a new set of record, depending on whether the number of records loaded exceeds a certain maximum or not?

Thanks for your help!

10 Jan 2012, 6:23 AM
Is this for Ext JS 3 or 2?

Also which header? The one with the title or the column names?

10 Jan 2012, 6:25 AM
Thanks for your reply.
To be exactly, for Ext JS 2.
I thought 2 and 3 are pretty similar in syntax, so I also posted this in Ext 3, hoping for more reading people.

I mean the header with the title.