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 0566BC529 for ; Thu, 3 May 2012 11:11:14 +0000 (UTC) Received: (qmail 47807 invoked by uid 500); 3 May 2012 11:11:13 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 47725 invoked by uid 500); 3 May 2012 11:11:13 -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 47717 invoked by uid 99); 3 May 2012 11:11:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 11:11:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 11:11:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E3C7D42D0AA for ; Thu, 3 May 2012 11:10:48 +0000 (UTC) Date: Thu, 3 May 2012 11:10:48 +0000 (UTC) From: "Wouter Schreuders (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <107577013.21323.1336043449702.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (FLEX-55) Spark Datagrid does not update correctly when dataprovider gets sorted. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Wouter Schreuders created FLEX-55: ------------------------------------- Summary: Spark Datagrid does not update correctly when dataprovider gets sorted. Key: FLEX-55 URL: https://issues.apache.org/jira/browse/FLEX-55 Project: Apache Flex Issue Type: Bug Environment: Windows 7 machine. dell precision t1600, 8 gigs ram, intel Xeon. flex(flash builder), visual studio and ruby dev enviroment. Reporter: Wouter Schreuders Assignee: Bertrand Delacretaz Datagrid shows blank screen when applying sort to dataprovider, using the scrollbar causes it to display correctly. Download zip fxp project here: www.wouterschreuders.com/flex/theFile/DataGridRender.zip Steps to reproduce: 1. launch the app (it will populate the datagrid with values) 2. choose a different date in the date picker on the top left 3. use the scroller on the right-hand side to scroll through the datagrid, the datagrid will then render properly Actual Results: the dataprovider will get updated but the datagrid doesn't update properly, instead it just remains blank Expected Results: The datagrid shows the new results. When the user uses the scrollbar on the right the datagrid renders properly and shows the results. Workaround (if any): This is a hack suggested by Alex Harui, basically it entails setting the scroll position programatically to force the datagrid to render properly ////////////////////////////////////// var oldvsp:Number = dgTransactions.grid.verticalScrollPosition; // record the current scroll position _dateFilteredCollection = new ArrayCollection(dateFilteredArray); applySort(); applySearch(); dgTransactions.grid.verticalScrollPosition = oldvsp + .1; // move the scroll position to force the datagrid to show the data correctly dgTransactions.grid.verticalScrollPosition = oldvsp; // restore to the original scroll position -- 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