yes friend, thts all true whatever you are saying, actually i'm showing data in ADG(Which is in HBox) where adding columns at runtime(cause no. of cols r not fixed), and when cols r more , then VScrollBar(right side) comes after last colm which user cannot see directly on page(he need to scroll horizontally first and then can see VScrollBar of ADG). For this i'm using width=100%, where VScrollBar of ADG always visible.
Is any other way or any other tidea to achieve this? very thankful in advanced, :) valdhor-3 wrote: > > No. You have to think about it what you are asking - You want a datagrid > to take up 100% of the space and also to have the column widths only add > up to a specific number. It's just not possible to have both. If the > columns add up to a number that is less than 100% then you get a space > time paradox that could lead to the end of life as we know it ;-} > > The only way for Flex to accomplish what you are asking it to do is to > layout all of the columns except the last one to your specifications. Now, > when it needs to layout the last column it can either honor what you told > it and stretch that column OR ignore that and set the column to the > measurement you set. Adobe decided on the former - Parents know more than > their children. > > In my opinion Adobe did it the more intuitive way. As I said, you can > override the built-in behavior by setting the datagrid width explicitly. > > --- In [email protected], abhishek1 <abhishekche...@...> wrote: >> >> >> is any other way thr, >> i want to show ADg in 100% width , can we set last column's width with >> specific value(width=100)? >> :) >> >> valdhor-3 wrote: >> > >> > This is the way it works (There have been posts in the past about this >> - >> > like this one >> > http://tech.groups.yahoo.com/group/flexcoders/message/146209). >> > >> > If you need the last column to be a specific width then you need to set >> > the data grid width to a specific number rather than 100%. >> > >> > --- In [email protected], abhishek1 <abhishekchess1@> wrote: >> >> >> >> >> >> hey frnd, >> >> when i'm showing ADG width in %, why it taking more space for last >> >> column, >> >> is any solution? >> >> >> >> I want to show same like other columns or fixed width for last column >> , >> >> >> >> this is sample code : >> >> <?xml version="1.0" encoding="utf-8"?> >> >> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >> >> layout="vertical" >> >> > >> >> <mx:Script> >> >> <![CDATA[ >> >> import mx.collections.ArrayCollection; >> >> ]]> >> >> </mx:Script> >> >> >> >> <mx:ArrayCollection id="arrColl"> >> >> <mx:source> >> >> <mx:Array> >> >> <mx:Object label="Student A" score="85" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student B" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student C" score="71" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student D" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student E" score="24" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student F" score="64" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student G" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student H" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student I" score="93" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student J" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student K" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student L" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student A" score="85" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student B" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student C" score="71" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student D" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student E" score="24" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student F" score="64" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student G" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student H" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student I" score="93" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student J" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student K" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student L" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student A" score="85" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student B" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student C" score="71" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student D" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student E" score="24" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student F" score="64" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student G" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student H" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student I" score="93" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student J" score="88" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student K" score="48" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> <mx:Object label="Student L" score="76" score2="12" >> >> score3="15" score4="16" score5="25"/> >> >> </mx:Array> >> >> </mx:source> >> >> </mx:ArrayCollection> >> >> >> >> <mx:VBox width="500" height="100%" > >> >> <mx:HBox width="100%" height="100%" >> >> horizontalScrollPolicy="off" >> >> >> >> <mx:AdvancedDataGrid id="myADG" editable="true" >> >> dataProvider="{arrColl}" >> >> horizontalScrollPolicy="auto" width="100%" height="100%" >> >> verticalScrollPolicy="auto" >> >> > >> >> </mx:AdvancedDataGrid> >> >> >> >> </mx:HBox> >> >> </mx:VBox> >> >> </mx:Application> >> >> >> >> >> >> >> >> thx in advanced, >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/why-last-column-width-of-ADG-taking-more-space-%28when-width%3D100-%29-tp27050964p27050964.html >> >> Sent from the FlexCoders mailing list archive at Nabble.com. >> >> >> > >> > >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/why-last-column-width-of-ADG-taking-more-space-%28when-width%3D100-%29-tp27050964p27060750.html >> Sent from the FlexCoders mailing list archive at Nabble.com. >> > > > > -- View this message in context: http://old.nabble.com/why-last-column-width-of-ADG-taking-more-space-%28when-width%3D100-%29-tp27050964p27071277.html Sent from the FlexCoders mailing list archive at Nabble.com.

