1. #1
    Sencha User
    Join Date
    Feb 2013
    Location
    India
    Posts
    1
    Vote Rating
    0
    SanjeevDas is on a distinguished road

      0  

    Default Autoresize Grid without reducing/eliminating the height and the auto-scroll attribute

    Autoresize Grid without reducing/eliminating the height and the auto-scroll attribute


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


    Any help will be appreciated.
    Thanks
    Sanjeev.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    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/#!...cfg-autoHeight
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    546
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Replace your "height" config with "maxHeight".

Thread Participants: 2