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

When all the columns are invisible, pressing any character Key throws RTE

    XMLWordPrintableJSON

    Details

    • 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

      Description

      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([

      {product:"Procuct ", description:"Description 2 " , abcd:"oaak", efgh:"Yes", price:"2 " }

      ,

      {product:"Procuct 3 " ,description:"Description 4 ", abcd:"o23k" ,efgh:"Yes" ,price:"3 "}

      ,

      { product:"Procuct 4 " ,description:"Description 4 " , abcd:"oaak", efgh:"Yes", price:"4 " }

      ,

      {product:"Procuct 5 " ,description:"Description 5 " , abcd:"23ok" ,efgh:"no" ,price:"5 " }

      ,

      {product:"Procuct 6 " ,description:"Description 6 " , abcd:"2222" ,efgh:"no", price:"6 " }

      ,

      {product:"Procuct 7 " ,description:"Description 7 " , abcd:"#$%^" ,efgh:"no" ,price:"7 " }

      ]);
      ]]
      >
      </mx:Script>
      <mx:DataGrid dataProvider="

      {myComponentAC}

      " 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                evolverine Mihai Chira
                Reporter:
                adobejira Adobe JIRA
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: