Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-11153

Setting DataGridColumn backgroundColor causes runtime error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 2.0 (Release)
    • mx: DataGrid
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      1. Drag and drop a datagrid to stage and set backgroundColor to one of the columns
      or use the following MXML

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:DataGrid x="10" y="10">
      <mx:columns>
      <mx:DataGridColumn headerText="Column 1" dataField="col1" backgroundColor="0x555555"/>
      <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
      <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
      </mx:columns>
      </mx:DataGrid>

      </mx:Application>

      2. Run the swf

      You will get the following runtime error

      TypeError: Error #1010: A term is undefined and has no properties.
      at mx.controls::DataGrid/mx.controls:DataGrid::drawColumnBackground()
      at mx.controls::DataGrid/mx.controls:DataGrid::drawLinesAndColumnBackgrounds()
      at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()
      at mx.controls.listClasses::ListBase/validateDisplayList()
      at mx.managers::LayoutManager/private::validateDisplayList()
      at mx.managers::LayoutManager/private::doPhasedInstantiation()
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/private::callLaterDispatcher2()
      at mx.core::UIComponent/private::callLaterDispatcher()
      at [enterFrameEvent]

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: