PDA

View Full Version : Autoresize Grid without reducing/eliminating the height and the auto-scroll attribute



SanjeevDas
6 Feb 2013, 1:45 AM
Hi all,

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))

http://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgIAAAIBCAIAAAC0s0A1AAAgAElEQVR4nO3dTW/kyJ3n8Tj4hfUb0PvQi6hDGdiDG9ChDcyhs7CHORjQAJ7DQNhDw5saqHeKq8FgZlruaa8t7MCW2tXtzHqQUg/lNRoYcA/RCofiKYMZjCQj4vvBHwUmk2SSQUb8MlMqUbwEUI4eGJtYLFcURc2/ph4rUC2xWK4e//JfFEXNuT77ghhALsQARRVQxADyEYvl6uLNR4qi5lyf/eJq6rEC1RKL5eo3bz5SFDXn+jkxgGzEYrn65o+PFEXNuT77W2IAuYjFcvX11SNFUXMuYgD5iMVy9eurB4qi5lw/JwaQDTFAUQUUMYB8xGK5+uoPD6p+8smRXnKOvgBFUfuvT/87MYBcxGK5+tffP8j6yScvf/LJkXqoZj49ZZY9X9uOucDWhdUciqKM+hkxgGzEYrn65fl7WeL5RwE5U04YD/X5wj9HPG1HTghts2pazaEoylef/jf++xhyEYvl6ouvblQZXwrJOepfe0IO7sYcta54PqEe6k/py1MU5azPj4gB5CIWy9WvLm6MEk9D9q8ubvR/7Qk5uBtPqU8VaiPi+UM1R38ttR2Kooz6/DNiALkQAxRVQBEDyEcslqvTr29lGd8IqZnqX3vCXsVe3XhKn28vT1GUXQtiANmIxXL1j9/c7lxyBE/ZAkVRW+vzvyEGkItYLFdn32x2LvHJS/HJy5QtUBS1tV7+Db8wilzEYrn6p9/eURQ15/opMYBsxGK56n53R1HUnOun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AAA0jRgAgKYRAwDQNGIAAJpGDABA04gBAGgaMQAATSMGAKBpxAAANI0YAICmEQMA0DRiAACaRgwAQNOIAQBoGjEAAE0jBgCgacQAADSNGACAphEDANA0YgAAmkYMAEDTiAEAaBoxAABNIwYAoGnEAAA0jRgAgKYRAwDQNGIAAJpGDABA04gBAGgaMQAATSMGAKBpxAAANI0YAICmEQMA0DRiAACaRgwAQNOIAQBoGjEAAE37/4F19e4t0NUKAAAAAElFTkSuQmCC
Any help will be appreciated.
Thanks
Sanjeev.

sword-it
6 Feb 2013, 7:06 AM
Hi,

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/#!/api/Ext.grid.GridPanel-cfg-autoHeight

willigogs
6 Feb 2013, 3:34 PM
Replace your "height" config with "maxHeight".