flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLEX-33158) addSortField method in the AdvancedDataGridEx works inconsistently
Date Mon, 16 Sep 2013 01:38:51 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Mclean reassigned FLEX-33158:
------------------------------------

    Assignee: Justin Mclean
    
> addSortField method in the AdvancedDataGridEx works inconsistently 
> -------------------------------------------------------------------
>
>                 Key: FLEX-33158
>                 URL: https://issues.apache.org/jira/browse/FLEX-33158
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: ADG:MultiColumnSorting
>    Affects Versions: Adobe Flex SDK 4.5 (Release)
>            Reporter: Robert Bar
>            Assignee: Justin Mclean
>            Priority: Minor
>             Fix For: Adobe Flex SDK 4.5 (Release)
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Please assume you have the ADG instance which has a data provider set to an ArrayCollection
with custom compare function associated with the Sort object. The Sort object contains some
fields, so that the ADG shows many sorting arrows. 
> If you ctrl+click header of an unsorted column, then ADG reuses the existing Sort object
and adds the field to the collection, so that your custom comparison function is still in
use. Next, if you click  header of another column, so that only one column is sorted, then
as the result, ADG will replace the custom Sort object with blank Sort object and the custom
comparison function is lost.
> Basic workaround:
> coll.addEventListener("sortChanged", sortChangedHandler);
> private function sortChangedHandler(event : Event) : void
> {
>        if (coll.sort)
>        coll.sort.compareFunction = myCustomSortFunction;
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message