[ 
https://issues.apache.org/jira/browse/FLEX-33393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikko Torniainen updated FLEX-33393:
------------------------------------

    Attachment: Main.air
                Main-app.xml
                Main.mxml
    
> Support for nested xml data in datagrid datafield
> -------------------------------------------------
>
>                 Key: FLEX-33393
>                 URL: https://issues.apache.org/jira/browse/FLEX-33393
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Mikko Torniainen
>            Priority: Minor
>              Labels: datafield, datagrid, e4x
>         Attachments: Main.air, Main-app.xml, Main.mxml
>
>
> Quite often xml datasource isn't neatly in one level, but contains nested 
> nodes. Spark datagrid partially supports using e4x-queries in 
> gridcolumn-dataField, but it fails if you try to filter by an attribute (@) 
> of a nested node. For convinience and consistancy this could also be 
> supported.
> This works: @something
> This works: child
> This works: child.grandchild
> This does not work: child.(@id == 'something') and will also clear the 
> headerText of that column for some reason.
> Workarounds:
>  - preprocess the xml to easier form before using it as dataprovider.
>  - extend the gridcolumn to pass custom data and use the labelfunction or 
> itemrendererfunction instead.

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