This content has been marked as final. Show 9 replies
Thanks, Joan. I've found that one too. One can learn a lot from these examples. :)
Unfortunately, in this example the footer is not part of the datagrid itself but its chrome, meaning that if you have to horizontally scroll the datagrid (like in my case)
the horizontal scrollbar gets inserted between the datagrid and footer (not very pleasing) and
the footer doesn't scroll with the datagrid (aggregates no longer line up with data)
So, I am still searching for a solution...
Grouping is different from flat data because grouping produces a new collection while performing grouping and hence can insert summary into the new collection.
While dealing with flat data it is not possible to insert the summary row as users would not want it reflected in the source. This requires implementing a custom iterator which can return a summary row without it being present in the source.
Do you require the summary row to be locked at the bottom or just be visible as the last row ?
Yes, that is correct. I wouldn't want the summary row to be reflected in the source data.
As a first step it would suffice to have the summary row as the last row.
But from a usability point of view, it would make more sense to have it locked at the bottom or top so that it is visible while scrolling the datagrid.
You can try using the sample I have posted here
It uses groupingCollection to generate the summary required and tweaks the ADG properties to get a flat view.
Thank you, Sreenivas. I will try it out.
Boy, this is torture! :)
I can see your screen shot of what I want but then when I run your provided sample code all I get is an empty datagrid with the text "Not Available" in the first column... so far no fiddling around with the code has gotten me to that screen shot look...
I am running the Flex3 Beta 2 build 3.0.183654
I am using a later build. So I assume in the next public release (which I hope would be very soon) it would work for you.
Sorry for the torture.