This content has been marked as final. Show 3 replies
After changing the summaryPlacement, the changes will not get reflected unless you refresh the GroupingCollection again by calling GroupingCollection.refresh().
Thanks for taking a look at this. I changed the code as follows:
private function handleItemOpen(event:AdvancedDataGridEvent ):void
Summary2.summaryPlacement = "last";
private function handleItemClose(event:AdvancedDataGridEvent ):void
Summary2.summaryPlacement = "group";
This causes the group to close immediately after it opens, which makes it impossible to do anything with the data. You only get to see it open for a split second. It does move the summary placement though.
ADG/GroupingCollection currenlty doesn't support dynamic changing. The refresh work-around would cause the problem you are facing because the collection is getting rebuilt.
Best solution possible currently is to use summaryPlacement="last group" so that summary is always visible at both the places.