Reputation:
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
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
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