开发者

Flex 4.5 Spark Datagrid multi-column sort

does anyboy know if Flex 4.5 Spark Datagrid suppoprts multi-column sort na开发者_运维百科tively - just like the ADG does?

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

Thanks


The 4.10/4.11 release from Apache has the methods needed. We've blogged about this here: http://blog.flexicious.com/post/Spark-DataGrid-Multi-Column-Sort.aspx


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.


I use the sortCompareFunction property of the spark DataGrid to define a function with the multi-column sorting logic in it. It works well enough, for the moment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜