Results 1 to 2 of 2

Thread: problem setting height dynamicly of a grid when autoHeight is already set

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    39
    Vote Rating
    0
      0  

    Default problem setting height dynamicly of a grid when autoHeight is already set

    Hello,

    Does anyone know how to toggle between autoheight is true and setting a height dynamicly of a grid.

    Mygrid is on a normal page without a viewport.

    If I do this, then I loose the scrollbar

    Code:
    mygrid.autoHeight=false;
    mygrid.setHeight(200);
    if I leave autoHeight is true out of the initial setup of the grid, I have no way to determine the height it needs for the rows.

    Does anyone has a solution for this?

    Thanks in adv, Richard

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    I would advise against this.

    Leave your grid set to autoHeight:true and calculate the required height of the grid by getting the scroller height and adding the header and footer heights.

Similar Threads

  1. autoHeight for grid, but with a max height
    By brigot in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 23 Feb 2010, 12:02 PM
  2. Height setting in Extjs Grid
    By cprabha in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Mar 2009, 10:09 PM
  3. How to set a timefield minValue dynamicly?
    By Dumbledore in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Sep 2008, 10:53 PM
  4. [HELP] Setting Form Values Dynamicly
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Jan 2008, 2:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •