why last column width of ADG taking more space

2 views
Skip to first unread message

abhishekchess1

unread,
Jan 4, 2010, 2:06:40 AM1/4/10
to Flex India Community
hey frnd,
when i'm showing ADG width in %, why it taking more space for last
column,
is any solution?

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,
:)

sankar swaroop

unread,
Jan 5, 2010, 2:36:14 AM1/5/10
to flex_...@googlegroups.com
b'cas the last column occupies the remaining space left in the ADG


--

You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



edwin....@gmail.com

unread,
Jan 5, 2010, 5:55:25 AM1/5/10
to flex_...@googlegroups.com
There has to be a fix for this.
Let's get moving on this one Flex Group.
I'm waiting to hear from team Flex_India

Ed

krishna chaitanya kambhampati

unread,
Jan 5, 2010, 7:33:00 AM1/5/10
to flex_...@googlegroups.com
use <mx:Spacer> if any empty space is left when u r using % for width/height
--
Thanks & Regards,
K. Krishna Chaitanya
ARIJASOFT - HYD
www.arijasoft.com
Reply all
Reply to author
Forward
0 new messages