chandra
chandra

Reputation:

Refresh data in AdvancedDataGrid, after data change (AS3)?

I am using the AdvancedDataGrid control. In that I am showing the data in hierarchical format in that I have one parent with two children. In the parent I have a checkbox, and when I select the checkbox, I have to remove the existing data of children and replace with new ones.

Upvotes: 0

Views: 6588

Answers (2)

PicoCreator
PicoCreator

Reputation: 10154

[I am assuming this question is for AS3]

Faced a similar problem, to refresh the advanceDataGrid, after you manipulated the source data just run

advanceDataGrid.invalidateList();

It will then refresh on the next frame.

Upvotes: 2

Karl
Karl

Reputation: 2945

To refresh the data when displaying hierarchical data simply refresh the group list in the advanced datagrid.

The API is not consistent which trips many ppl up.

groupList.refresh();

<mx:dataProvider>
   <mx:GroupingCollection id="groupList" source="{OrderDB.flatData}" >
     <mx:Grouping>
        <mx:GroupingField name="benchmark" >
         <mx:summaries>

Upvotes: 0

Related Questions