You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Erik de Bruin (JIRA)" <ji...@apache.org> on 2013/05/14 12:33:16 UTC

[jira] [Commented] (FLEX-33066) Spark Datagrid does not update correctly when dataprovider gets sorted.

    [ https://issues.apache.org/jira/browse/FLEX-33066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13656940#comment-13656940 ] 

Erik de Bruin commented on FLEX-33066:
--------------------------------------

Which SDK and Flash Player version? I'm unable to reproduce this on both OSX and Win7 using the SDK version 4.9.1. 
                
> Spark Datagrid does not update correctly when dataprovider gets sorted.
> -----------------------------------------------------------------------
>
>                 Key: FLEX-33066
>                 URL: https://issues.apache.org/jira/browse/FLEX-33066
>             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: Alex Harui
>              Labels: datagrid, dataprovider, manual, render, scroller, sort
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira