Title: Tables Post by: Paul M. on April 25, 2014, 02:36:24 pm Using Genero 2.50
Is it possible for a table to shrink to the size of the last visible column or to have the last visible column take the rest of the space? I have created a table with 5 columns then in some cases I want to hide the last 2 columns which I can do. But the space taken up by these 2 columns isn't usable. The table stays the same width across the page and the last column (no.3) doesn't grow to take up the remaining space. So just wondering if it is or will be possible to shrink the table or widen the last column to take up the space available. Thanks. Regards, Paul Murray. Title: Re: Tables Post by: Lionel F. on April 28, 2014, 04:32:28 pm Hi Paul,
Wouldn't it be more a GDC issue? Did you consider using the "resizeFillsEmptySpace" style attribute ? <Style name="Table"> <StyleAttribute name="resizeFillsEmptySpace" value="yes"/> </Style> With this attribute, the table always adapts the size of the last column to avoid unused space. Best regards, Lionel Title: Re: Tables Post by: Paul M. on April 28, 2014, 05:48:15 pm Lionel,
No, its the table available in Genero 2.50 GRW(see attached image). Title: Re: Tables Post by: Henri L. on April 28, 2014, 05:52:35 pm Hi Paul,
How do you hide the 2 last columns ? Do you set the width of the column to zero ? Or did you find another solution? You can use an expression for the X-Size property of the table. Try something like : {hideLastColumn>0?"10cm":"15cm"} I assume that there is a variable “hideLastColumn” in the data, please adapt to your context. Best Regards, Henri Title: Re: Tables Post by: Paul M. on April 29, 2014, 09:13:48 am Hi Henri,
I was setting the visibility condition property to hide the columns. I will give setting the x-size of the table a go and see what happens. Thanks for the suggestion. Regards, Paul Murray. |