Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Tables  (Read 12915 times)
Paul M.
Posts: 30


« 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.
Lionel F.
Four Js
Posts: 82


« Reply #1 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
Paul M.
Posts: 30


« Reply #2 on: April 28, 2014, 05:48:15 pm »

Lionel,

No, its the table available in Genero 2.50 GRW(see attached image).


* Screenshot - Mon-28Apr14@1535.png (46.01 KB, 334x933 - viewed 1917 times.)
Henri L.
Four Js
Posts: 2


« Reply #3 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
Paul M.
Posts: 30


« Reply #4 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines