This content has been marked as final. Show 4 replies
Look at the first picture that groups territory Rep. I think this is the functionality you want. I am also looking for examples of the same thing!
> When the data grid displays the grouping collection, it does not display any data in the rows that contain the expandable group parent label. I would greatly appreciate the option to display aggregates for each of the columns within the group.
You can place the summary in the same row as the expandable group parent label using the summaryPlacement="group" option. An example is present in the ASDocs at http://livedocs.adobe.com/labs/flex/3/langref/mx/collections/SummaryRow.html
> Similarly, I don't like that the summary data for the group is shown as a single label, centered under the group. It seems that summary aggregates should appear within the column of data that they aggregate.
> Is there any way to achieve this functionality using the AdvancedDataGrid? Am I overlooking some features or funtionalty that would make these behaviors trivial?
The centering under the group in the example was used only to show off the column spanning feature. The summary data can be rendered in any fashion that you want! Just specify a
SummaryRenderer and use your wild imagination to display the data :-)
> Furthermore, I wish that the summary label did not disappear when the group was collapsed.
If the summaryPlacement="group" option is used, the summary label will always be present next to
the group row.
Please let us know that if this helps in what you want to achieve. Otherwise, feel free to ask more
Thank you for those very helpful responses. Not only have you told me how I can make the AdvancedDataGrid do exactly what I want, but you've pointed me to some well written blogs.