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

Paul Whitelock commented on FLEX-33824:
---------------------------------------

I was able to get the problem of disappearing or mis-rendered DataGrid headers 
fixed using info in this thread, but the thumb in the vertical scroll bar is 
not drawn after the DataGrid is added to the stage. If the browser is resized 
then the thumb is re-drawn, but is there a workout around to get the thumb to 
draw without a browser re-size?

Below is the code I used for the problem with the column headers. I tried 
something similar using dataGrid.scroller.verticalScrollBar (instead of 
dataGrid.columnHeaderGroup), but it didn't help. I'm using 4.11.

private function handleDataGridAddedToStage(event:Event):void
        {
            var dataGrid:DataGrid = event.target as DataGrid;

            if (dataGrid.columnHeaderGroup)
            {
                dataGrid.validateNow();
                dataGrid.columnHeaderGroup.invalidateProperties();
                dataGrid.columnHeaderGroup.invalidateSize();
                dataGrid.columnHeaderGroup.invalidateDisplayList();
            }

            callLater(function ():void
                      {
                          if (dataGrid != null)
                          {
                              dataGrid.validateNow();
                          }
                      });
        }

> Disappearing spark DataGrid columns when we set dataProvider to null
> --------------------------------------------------------------------
>
>                 Key: FLEX-33824
>                 URL: https://issues.apache.org/jira/browse/FLEX-33824
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.10.0
>         Environment: Windows 7 64bit, Adobe Air 2.6
>            Reporter: Piotr Zarzycki
>            Assignee: Alex Harui
>
> This is an example of an application with problems we have noticed on our 
> main appliaction.
> Instructions:
> We've got 2 views added dynamically to app.
> 1) Click on button "View 1" - DataGrid looks Ok (fill dataProvider on 
> ADDED_TO_STAGE event)
> 2) Click on button "View 2" - DataGrid still looks Ok (set null to View 1's 
> dataProvider on REMOVED_FROM_STAGE event)
> 3) Click once again on button with "View 1" - Columns in DataGrid 
> accidentally disappear) ->  http://bit.ly/GORcrb
> 4) Roll over on data grid's header and everything is back to normal - columns 
> appearing
> Link to example app (zip, Intellij IDEA project) -> http://bit.ly/16cOemT



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to