6 Feb 2013 1:45 AM #1
Autoresize Grid without reducing/eliminating the height and the auto-scroll attribute
I have a Grid Panel which pulls large amount of data from a server at a busy day.
The height declared for the Grid is 200 and the auto-scroll attribute is set to true.
But whenever the Grid pulls up fewer data(lets say 1 data on a no working day), then the lower part of the Grid contains the space which doesn't goes well with the design. Is there any possibilities of auto resizing the Grid without changing or eliminating the height and the auto-scroll attribute.
This is what I want my Grid to look like when it pulls few data(1 or 2 data(s))
Any help will be appreciated.
6 Feb 2013 7:06 AM #2
You are using fixed height for grid thats why, if grid has only one item then it will not aoturesize,
for more detail see this link :http://docs.sencha.com/ext-js/3-4/#!...cfg-autoHeightsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
6 Feb 2013 3:34 PM #3
Replace your "height" config with "maxHeight".