Search code examples
apache-flexactionscriptadvanceddatagrid

Advanced Datagrid SummaryField Treats XML Data as String


I have an advanced datagrid, with the grouping collection attached to an XMLListCollection.

I tried to perform a SummaryOperation, but always ends up getting 0 (zero) on the SummaryRow as it seems the data is being treated as string, instead of numeric.

Is there a way to force the SummaryField2 object to treat the data as numeric rather than string?

Thanks.


Solution

  • The older SummaryField has a summaryFunction property that does what you need. You could probably also write your own SummaryOperation that takes XML into account.