:: Forum >> Version 1 >>

Expansion of grid height to match rows?

Is there any way to adjust or set the .active-contols-grid height value to match the row count value, so that the grid will always expand to show all rows returned in a result set? In other words, I do not want to show a vertically scrollable subset - I want all fo the rows to be visible without scrolling. Thanks for any advice!
Frank Moriarty
Thursday, February 10, 2005
May someone respond to this VERY interesting question ?
Patrick Allaert
Thursday, March 31, 2005
I use this trick.
var gridheight =
"column-headers".height +
3 to 5 px for "column-header-borders +
24 px (default row height) * myData.lenght +
1 px * myData.lenght (if use row line separator) +
"horiz-scrollbar".height

var stylesheetX = document.styleSheets[document.styleSheets.length-stylesheetX.addRule('#objid', 'HEIGHT: ' + gridheight + 'px;');
document.write(obj);
Carlos
Thursday, March 31, 2005
I tried something similar without success. Details are in this forum post:
/javascript.forum.4516.0/resizing-grid-using-javascript.html

Am I doing something wrong?

Is something missing?
Craig
Wednesday, April 20, 2005
Here is a post with a solution that worked for us

/javascript.forum.5038.0/resize-grid-on-browser-resize.html

Craig
Monday, May 16, 2005

Um, that should be:

/javascript.forum.5038.0/resize-grid-on-browser-resize.html
Craig
Tuesday, May 17, 2005



This topic is archived.

Back to support forum

Forum search