Search the bug base.  I think there's already an bug on that

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Ben Reynolds
Sent: Tuesday, May 19, 2009 9:43 PM
To: [email protected]
Subject: [flexcoders] DataGridColumn backgroundColor bug?





Hi guys,

  This seems like an awfully simple thing for nobody to have picked up before, 
so hopefully someone can point me in the right direction as to what I'm doing 
wrong. I have gone way heaps hardcore and simplified the issue to the following 
using SDK3.2:

<mx:DataGrid showHeaders="false">
    <mx:columns>
        <mx:DataGridColumn backgroundColor="#ffff00" />
    </mx:columns>
</mx:DataGrid>

With either showHeaders="false" or headerHeight="0" the code is generating the 
following error found in DataGrid's drawColumnBackground function:

TypeError: Error #1010: A term is undefined and has no properties.
    at 
mx.controls::DataGrid/drawColumnBackground()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3012]
    at 
mx.controls::DataGrid/drawLinesAndColumnGraphics()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3311]
    at 
mx.controls::DataGrid/drawLinesAndColumnBackgrounds()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3207]
    at 
mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1506]
    at 
mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3280]
    at 
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\framewor! 
ks\projects\framework\src\mx\managers\Layo! utManage r.as:622]
    at 
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at 
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
    at 
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

Line 3012 is:

var xx:Number = columnHeader.rendererArray[columnIndex].x

There appears to be no rendererArray. Can someone shed some light on this? Is 
it something fixed in 3.3 (which is something I'm unable to test at this ! 
point)?

MrB

Reply via email to