3.2.0

printing setting the grid height to total height

Ok, I figured if i made the grid none scrollable, and scrolling with the rest of the page it would print correctly, but it hasn't, this is what i added

figured out the total height of the grid
$grid_height = 20 + ($row_count*18);


and then set the heighf ot it, with this
obj.setStyle("height", $grid_height px");


so now the grid scrolls along with the rest of the page, but still doesnt' print normally.

Anyone have any ideas, i tried everything on the forums but none worked for me.
Ronald
May 12,
I find simply putting this at the end of my CSS sorts any problems out, regardless of how many rows there are in the grid:

@media print
{
.noScroll
{position:static;}
.active-scroll-bars,
.active-scroll-left,
.active-scroll-top,
.active-scroll-corner
{display:none;}
.active-controls-grid,
.active-scroll-data,
.panel
{overflow:visible;height:auto!important;width:auto!important;position:relative;border:0px;}
}


I'm pretty certain that Alex has already posted this somewhere in the forum, but cannot find it now. Hope this helps.
Roy Cosway
May 18,

This topic is archived.

See also:


Back to support forum