-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: Adobe Flex SDK Previous
-
Fix Version/s: None
-
Component/s: mx: DataGrid
-
Labels:None
-
Environment:Affected OS(s): Windows
Affected OS(s): Windows XP
Language Found: English
Steps to reproduce:
1. Compile and run the below sample piece of code
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var myComponentAC:ArrayCollection = new ArrayCollection([
,
,
,
,
,
]);
]]
>
</mx:Script>
<mx:DataGrid dataProvider="
" width="100">
<mx:columns>
<mx:DataGridColumn headerText="Product" dataField="product" visible="false"/>
<mx:DataGridColumn headerText="Description" dataField="description" visible="false"/>
<mx:DataGridColumn headerText="Ok/Not Ok" dataField="abcd" visible="false"/>
<mx:DataGridColumn headerText="Yes/No" dataField="efgh" visible="false"/>
<mx:DataGridColumn headerText="Price" visible="false" dataField="price" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
2. Focus on the DataGrid.
3. Press any character key. Below RTE is thrown.
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::DataGrid/itemToLabel()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\DataGrid.as:4567]
at mx.controls.listClasses::ListBase/findStringLoop()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7697]
at mx.controls.listClasses::ListBase/findString()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7684]
at mx.controls.listClasses::ListBase/findKey()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7562]
at mx.controls.listClasses::ListBase/keyDownHandler()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7939]
at mx.controls::DataGrid/keyDownHandler()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\controls\DataGrid.as:4553]
Actual Results: When all the columns are invisible, pressing any character Key throws RTE
Expected Results: No RTE.
Workaround (if any): none
- duplicates
-
FLEX-31948 When all the columns are invisible, pressing any character Key throws RTE
-
- Open
-