Hybrid View

  1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    39
    Vote Rating
    0
    rich71 is on a distinguished road

      0  

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

    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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar