View Full Version : Setting the maxHeight of the grid with scroll bar

7 Mar 2012, 8:57 PM
Hi all,

I have a grid which is within a Panel. Panel's layout is hbox. I want to ensure gird can have a max height of 200 and after that it should show scroll bar. But setting minHeight, MaxHeight, autoScroll to true is not working.

When grid does not have any record, it should NOT take the max height. When I set height:200 config and autoScroll: true config I am able to get the scroll bar but in this vase grid always takes 200 height even when there are no records in the grid.

Kindly provide your suggestions.

Thanks in advance

8 Mar 2012, 4:34 PM
Do you have flex set on the grid? Flex, width, height on the grid would be picked up by the layout. Also if you have align set on the layout config.