-
5 Oct 2010 6:47 AM #1
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
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.Code:mygrid.autoHeight=false; mygrid.setHeight(200);
Does anyone has a solution for this?
Thanks in adv, Richard
-
6 Oct 2010 2:18 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
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
-
autoHeight for grid, but with a max height
By brigot in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 23 Feb 2010, 12:02 PM -
Height setting in Extjs Grid
By cprabha in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 17 Mar 2009, 10:09 PM -
How to set a timefield minValue dynamicly?
By Dumbledore in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 3 Sep 2008, 10:53 PM -
[HELP] Setting Form Values Dynamicly
By Phunky in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 9 Jan 2008, 2:57 AM


Reply With Quote