Search code examples
sortingapache-flexdatagridmultiple-columnsflex-spark

Flex 4.5 Spark Datagrid multi-column sort


does anyboy know if Flex 4.5 Spark Datagrid suppoprts multi-column sort natively - just like the ADG does?

I'm looking at the api documentation and cannot see anything on this...

Thanks


Solution

  • Not natively no. There's constant improvements being done on the charting for Flex, but this hasn't been added in just yet.

    Your best solution would be to have a listener on the column headers and then sort the data yourself. It isn't that hard, but it's important to be able to keep 'state' on the sort. Plus, it'll give you better malleability to change the sorting options.