From flex-dev-return-10450-apmail-incubator-flex-dev-archive=incubator.apache.org@incubator.apache.org Fri Aug 3 13:29:05 2012 Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C819D9DA for ; Fri, 3 Aug 2012 13:29:05 +0000 (UTC) Received: (qmail 17732 invoked by uid 500); 3 Aug 2012 13:29:03 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 17645 invoked by uid 500); 3 Aug 2012 13:29:03 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 17628 invoked by uid 99); 3 Aug 2012 13:29:03 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 13:29:03 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id D629214052C for ; Fri, 3 Aug 2012 13:29:02 +0000 (UTC) Date: Fri, 3 Aug 2012 13:29:02 +0000 (UTC) From: "Robert Bar (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <173589904.10175.1344000542882.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (FLEX-33158) addSortField method in the AdvancedDataGridEx works inconsistently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Robert Bar created FLEX-33158: --------------------------------- Summary: 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 Priority: Minor Fix For: Adobe Flex SDK 4.5 (Release) 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira