データを表示する高度なデータグリッドとグループ化オプションを作成します。私の場合、著者のリストとその本を表示したいと思います。
<mx:AdvancedDataGrid height="350"
displayItemsExpanded="true">
<mx:dataProvider>
<mx:GroupingCollection2 id="groupingCollection"
source="{bookList}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="author"
/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection2>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="author"
width="150"/>
<mx:AdvancedDataGridColumn dataField="birthday"
width="100"/>
<mx:AdvancedDataGridColumn dataField="title"
width="250"/>
<mx:AdvancedDataGridColumn dataField="dateOfPublication"
width="150"
/>
</mx:columns>
しかし、私のデータプロバイダーが最初にdateOfPublicationで並べられていても、グループ化後、各グループで順序が失われます。
各グループの dateOfPublication で並べ替えを強制する方法を知っていますか?
ありがとう