<mx:AdvancedDataGrid width="100%" height="240"
horizontalScrollPolicy="on" verticalScrollPolicy="on" >
<mx:dataProvider>
<mx:GroupingCollection2 id="gc" source="{arr_personal_production}" />
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn headerText="#" dataField="mppid"/>
...
</mx:columns>
</mx:AdvancedDataGrid>
The solution: After you add a groupping field to the grouppingCollection, the collection need a refresh, but not with the refresh() method.
You must call gc.refresh( false, true ); if you want to prevent the dispatchCollectionEvent.
No comments:
Post a Comment