Yeah, we do something similar to intercept the header click and directly set the ArrayCollection's sort property.

Tom

On 02/09/2013 04:24, Alex Harui wrote:
Never tried it myself, but see the doc here:
http://flex.apache.org/asdoc/spark/components/DataGrid.html#event:sortChang
ing


On 9/1/13 6:55 PM, "[email protected]" <[email protected]> wrote:

If I have a standard spark datagrid and click on a column to sort it, can
I somehow program a second column as a secondary sort?

That is, the first column, which the user clicks on, is sorted, then a
predetermined second column is programmatically sorted.

For example, the user clicks col2 to sort it, and col1 is used as
secondary sort, the result being:

col1   col2
A       1
B       1
A       2
B       2
C       2
A       5
A       8
B       8
C       8
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________



Reply via email to