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

Spark GridItemEditor cannot edit nested properties

    XMLWordPrintableJSON

    Details

      Description

      To reproduce:

      <s:DataGrid editable="true">
      <s:columns>
      <s:ArrayList>
      <s:GridColumn dataField="someProperty.nestedProperty" />
      </s:ArrayList>
      </s:columns>
      </s:DataGrid>

      This will throw a "no such property" error when the user tries to edit a cell, because GridItemEditor tries to access `_data[column.dataField]` in the `data` setter.
      I filed it as a bug and not as an improvement, because it is inconsistent with `GridItemRenderer`'s behaviour, which does render the nested property correctly.

      Note that the `save()` method is also affected: the item's property is accessed in the same way there.

        Attachments

        1. Company.as
          0.1 kB
          Carol Frampton
        2. Employee.as
          0.2 kB
          Carol Frampton
        3. FLEX33248.mxml
          2 kB
          Carol Frampton
        4. GridItemEditor.as
          20 kB
          Maxime Cowez

          Issue Links

            Activity

              People

              • Assignee:
                cframpton Carol Frampton
                Reporter:
                riastar Maxime Cowez
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: