I forgot to mention. The reason why this appears is because we have 7 hidden columns (visible="false"), which the user can enable by clicking on a button. It seems Spark Datagrid can't figure out the width when there are hidden columns. Even if I make all columns visible, and I hide one of the columns (visible="false) then the same problem occurs.
2015-02-05 11:05 GMT+01:00 Shervin Asgari <shervin.asg...@webstep.no>: > 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.asg...@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? >> > >