flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shervin Asgari <shervin.asg...@webstep.no>
Subject Re: Evenly distribute column width in Spark Datagrid
Date Thu, 05 Feb 2015 10:05:50 GMT
Here is a screenshot of how it looks like in mx:Datagrid and how it looks
like in the spark datagrid

Spark:
http://imgur.com/AFKiQcu

MX
http://imgur.com/lay4rRE

The MX one looks much nicer. It evenly distributes the remaining width on
the columns

Shervin

2015-02-05 10:59 GMT+01:00 Shervin Asgari <shervin.asgari@webstep.no>:

> Hi.
>
> Please take a look here:
>
> http://tiku.io/questions/5402996/in-flex-for-manually-resizing-datagrid-how-can-i-keep-the-column-widths-reason
>
> and
>
>
> http://stackoverflow.com/questions/3251074/how-can-i-evenly-distribute-columns-in-a-datagrid-in-flex
>
> I have the same problem.
>
> We have a spark datagrid with percentWidth="100" and a custom width on all
> grid columns.
> We have 25 columns, here is a very shortened example
>
> <s:Datagrid percentWidth="100">
> <s:columns>
>    <s:ArrayList>
>    <s:GridColumn id="typeColumn"
> ...
> etc
>
> But our last column takes up all the space left, and it looks pretty bad.
>
> Is there anyway we can evenly distribute the remaining space to the
> columns?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message