Friday, 15 July 2011

flex - Refresh GroupCollection of an AdvancedDatagrid - the sorted Arraycollection gets Randomized -


I have an advanced data grid which is populated by an array collection.

I ordered ArrayCollection according to the date (one of its properties), it shows from the past for the future. The thing is, if I refresh the collection collection (for immediate performance in the datagrid), after the order of ArrayCollection is sorted, the sequence of dates in ArrayCollection is again fried, but the population of the population displays immediately.

Then in the amount: From the array selection:> Sorting> Refresh Grouping Collection> AdWords populates the Data Grid, but the formulation is not sorted anymore.

Has anyone stumbled on such an obstacle first?

resolve:

  private function populateGrid () : Zero { 

gc.source = siteTrafficData; Gc.refresh ();

adv_dg.validateNow ();

Sort Sort: Sort = New Sort (); Sort.fields = [new ordering ("date")]; IHierarchicalCollectionView (adv_dg.dataProvider) .sort = sort; IHierarchicalCollectionView (adv_dg.dataProvider) .refresh (); }


No comments:

Post a Comment