Code: Select all
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::DataGrid/mouseDownHandler()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\DataGrid.as:4787]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
Note that the cell in question was already completely visible (third row, 2nd column), the datagrid in question only has 2 columns, and that the units for horizontalScrollPosition in a flex datagrid is columns, not pixels, so a value of 9 as shown in the debugger is clearly an error.
I've also attached snapshots showing the variable values of two frames above the offending call in case that helps track down the problem: Other factors that may be important:
- The Datagrid in question is an inline subclassed component of Datagrid, and the column in question has both a custom itemrenderer and itemeditor
- At the time of the click the itemeditor is active and the click was actually on a combobox child of the itemeditor