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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK Previous
    • Component/s: Advanced Data Grid
    • 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:AdvancedDataGrid dataProvider="

      {myComponentAC}

      " width="100">
      <mx:columns>
      <mx:AdvancedDataGridColumn headerText="Product" dataField="product" visible="false"/>
      <mx:AdvancedDataGridColumn headerText="Description" dataField="description" visible="false"/>
      <mx:AdvancedDataGridColumn headerText="Ok/Not Ok" dataField="abcd" visible="false"/>
      <mx:AdvancedDataGridColumn headerText="Yes/No" dataField="efgh" visible="false"/>
      <mx:AdvancedDataGridColumn headerText="Price" visible="false" dataField="price" />
      </mx:columns>
      </mx:AdvancedDataGrid>
      </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::AdvancedDataGridBaseEx/itemToLabel()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5954]
      at mx.controls.listClasses::AdvancedListBase/findStringLoop()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7146]
      at mx.controls.listClasses::AdvancedListBase/findString()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7133]
      at mx.controls::AdvancedDataGridBaseEx/findKey()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1631]
      at mx.controls.listClasses::AdvancedListBase/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7373]
      at mx.controls::AdvancedDataGridBaseEx/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5925]
      at mx.controls::AdvancedDataGrid/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:3505]

      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:
                Unassigned
                Reporter:
                adobejira Adobe JIRA
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: