View Full Version : ExtJS GridPanel Height

5 Nov 2013, 3:15 AM

I have a container that has 3 GridPanels, one under another.
GridPanel C is collapsed by default.

What I am trying to accomplish is have the non-collapsed GridPanels occupy the container space by default, no matter which and how many are collapsed or not.
What happens now is that the GridPanels take up as much space as is required to display all the rows.
A GridPanel with 0 rows will take up no space other than the title bar.

For example, if there is only one GridPanel not collapsed, it should take up all of the container space ( except for the little space that is left for the two collapsed GridPanels ), if two, then they should split the space in half. If all three, then split the space threeways.

5 Nov 2013, 4:26 AM
Had to set the parent container layout to :

type: 'accordion',
multi: true