:: Forum >>
Grid In Table Solution !!!
I finally found a way to successfully present the grid - no matter
what its container is (table, tr, td, div...etc).
Presented here is just the direction for the solution and it works.
Final solution should be more complex and based on values recieved from the object model and not hardcoded, to preserve grid dynamics.
...
var intTotalRows = 25
var pxRowHeight = 26;
var pxHeaderHeight = 20;
var pxFooterMargin = 5;
var pxGridHeight = (pxRowHeight * intTotalRows);
pxGridHeight = pxGridHeight + eaderHeight + pxFooterMargin ;
obj.setStyle("height", pxGridHeight);
Grid Style attribute is set to the correct grid height in pixels and so grid is presented in full height and not cropped by container, because there is no more overflow and no need for scrolling.
InonI
Friday, May 6, 2005
Sorry spell mistake:
pxGridHeight = pxHeaderHeight + pxGridHeight + pxFooterMargin ;
If anyone could show me how to set the values dynamically;
Thanks,
InonI
Friday, May 6, 2005
another small fix:
obj.setStyle("height", pxGridHeight + "px");
InonI
Friday, May 6, 2005
This topic is archived.
Back to support forum
Forum search