Home
Analytics
Set grid row height to 100%
robcha
<p>Hello<br><br>
I would like to insert a grid with one row and this row must have the max height relative to the parent element.<br><br>
E.g., I have empty report: header, body and footer. And I insert 1x1 grid into the body. I set row height to 100%. I expect that row will occupy the all space between footer and header, but it doesn't happen.<br><br>
How do I set grid row height to 100%?</p>
Find more posts tagged with
Comments
jfranken
<p>The Advanced option (scroll to bottom of Properties list) for the grid element has a Height property that can be set to 100%.</p>
<p> </p>
<p>Hope this helps.</p>
robcha
<blockquote class="ipsBlockquote" data-author="jfranken" data-cid="139716" data-time="1444919836">
<div>
<p>The Advanced option (scroll to bottom of Properties list) for the grid element has a Height property that can be set to 100%.</p>
<p> </p>
<p>Hope this helps.</p>
</div>
</blockquote>
<p> </p>
<p>As I wrote above, I set the height to 100%, but it is not working.</p>
jfranken
<p>Sorry, for the confusion. You said "row" height and I wanted to make sure that you were selecting the Grid element and setting its height property. If you set the height of the grid to 100% then maybe you could attach a sample report illustrating the issue because the grid height property should work.</p>
robcha
<p><span style="font-family:calibri, sans-serif;"><span style="font-size:11pt;">Hi,<a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/user/79032-jfranken/'
title=""><span><span> jfranken</span></span></a></span></span></p>
<p> </p>
<p>I try to set value 100% for grid and row height, but in html and pdf output formats grid looks very thin.</p>
jfranken
<p>Hi robcha,</p>
<p> </p>
<p>In BIRT 4.5, setting the height to a percentage does not work as far as I can tell. Using your sample report, I tried setting the height property not only for the Grid but also for the Row and the Cell. The XML source shows that the values have been set properly, but none of the emitters that I tried (Web Viewer, HTML, PDF) altered the height of the grid to fill the page, at least when the grid is empty. BIRT Professional handles the percentage height setting better, but still has some issues with the PDF emitter. Can you be more specific as to what you are trying to accomplish? The reason I ask is because there other options depending upon the functionality you are trying to achieve. For example, if you are trying to fill the grid cell with a color, that can be done by setting the Master Page background color property. That's just one scenario, but there are other solutions as well depending upon how you are using the grid element.</p>