0 Replies Latest reply on Jan 6, 2010 9:03 PM by new flex guy

    why last column width of ADG taking more space (when width=100%)

    new flex guy Level 1

      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,