Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Apache Flex 4.9.0
-
None
Description
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.