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 <abhishekche...@...> 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.

Reply via email to