[ 
https://issues.apache.org/jira/browse/FLEX-33248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559820#comment-13559820
 ] 

Maxime Cowez commented on FLEX-33248:
-------------------------------------

I have updated my original test application to include a 'filterFunction' on 
the 'dataProvider'.
See 
https://github.com/RIAstar/ApacheFlexPatchDemo/blob/master/src/main/actionscript/net/riastar/patchfx/GridItemEditorDemo.mxml
And here's the diff: 
https://github.com/RIAstar/ApacheFlexPatchDemo/commit/5e73779aefa98f2af46ab06e3dff6af80d6d9a4a

When you compile this with Flex 4.9.0 and you edit the 'company.name' field, 
you'll get a Type Coercion error telling you that a Company can't be cast to an 
Employee.
                
> Spark GridItemEditor cannot edit nested properties
> --------------------------------------------------
>
>                 Key: FLEX-33248
>                 URL: https://issues.apache.org/jira/browse/FLEX-33248
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.8 (parity release)
>            Reporter: Maxime Cowez
>            Assignee: Carol Frampton
>            Priority: Minor
>             Fix For: Apache Flex Next
>
>         Attachments: Company.as, Employee.as, FLEX33248.mxml, 
> GridItemEditor.as
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to