I copied the code as my base. It works without grouping other fields (by using 
AdvancedDataGridColumnGroup) . Let's say is you group Actual and Estimate. It 
won't work. Please see the attached screen shots. I want both of them in the 
same table.

Any other idea?

Thanks,







________________________________
From: valdhor <valdhorli...@embarqmail.com>
To: flexcoders@yahoogroups.com
Sent: Friday, July 10, 2009 12:40:51 PM
Subject: [flexcoders] Re: AdvacncedDataGrid: Column Group Issue





Have you tried modifying the example at http://livedocs. adobe.com/ 
flex/3/langref/ mx/controls/ AdvancedDataGrid .html#includeExa mplesSummary ?

--- In flexcod...@yahoogro ups.com, Patricia Han <flex...@... > wrote:
>
> Hi There,
> 
> Have you ever successfully create a table or grid with hierarchical data and 
> grouping some columns? I am trying to create a grid showing folders and want 
> to group two columns. It does not work. Please let me know if you know the 
> trick. Without the grouping, everything
> Thanks in advance!
> 
> Nancy
> 
> Here's code I have,
> 
> <mx:AdvancedDataGri d id="myADG" 
>                                 width="100%" height="100% "  
> variableRowHeight= "true" selectionColor= "#AAC5CE"
>                                 initialize=" gc.refresh( );"> 
>                                 <mx:dataProvider>
>                                     <mx:GroupingCollect ion id="gc" 
> source="{serverData }">
>                                         <mx:grouping>
>                                             <mx:Grouping>
>                                                 <mx:GroupingField 
> name="Servers" />
>                                                 <mx:GroupingField 
> name="Port"/ >
>                                             </mx:Grouping>
>                                         </mx:grouping>
>                                     </mx:GroupingCollec tion>
>                                 </mx:dataProvider> 
> 
>                                 <mx:columns>
>                                     <mx:AdvancedDataGri dColumn 
> dataField="Port" headerText=" Server/Port" />
>                                      <mx:AdvancedDataGri dColumn 
> dataField="VirtualR esourceType" headerText=" Virtual Type"/>
>                                     <mx:AdvancedDataGri dColumn 
> dataField="CIR" />
>                                     <mx:AdvancedDataGri dColumn 
> dataField="PIR" />
>                                      <mx:AdvancedDataGri dColumnGroup 
> headerText=" Capacity" > 
>                                                AdvancedDataGridCol umn 
> dataField="Avail" />
>                                               AdvancedDataGridCol umn 
> dataField="Total" />
>                                     </mx:AdvancedDataGr idColumnGroup> 
>                                 </mx:columns>
>                            </mx:AdvancedDataGr id>
>


   


      

Reply via email to