You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Trevor North (JIRA)" <ji...@apache.org> on 2012/08/17 15:44:37 UTC
[jira] [Created] (FLEX-33172) HierarchicalCollectionView only
accepts sort fields of type mx.collections.SortField instead of any
ISortField implementation
Trevor North created FLEX-33172:
-----------------------------------
Summary: HierarchicalCollectionView only accepts sort fields of type mx.collections.SortField instead of any ISortField implementation
Key: FLEX-33172
URL: https://issues.apache.org/jira/browse/FLEX-33172
Project: Apache Flex
Issue Type: Bug
Components: Advanced Data Grid
Affects Versions: Apache Flex 4.8 (parity release)
Reporter: Trevor North
Priority: Minor
I have written an extension of HierarchicalCollectionView which implements the IList interface such that I can make use of hierarchical data in the various Spark data controls (primarily to allow implementation of a spark tree data grid).
HierarchicalCollectionView accepts a sort property of type ISort and is supplied an instance of spark.collections.sort by my data grid. This is all fine, except that it's sortCanBeApplied function explicitly expects sort fields of type mx.collections.SortField where in this case I actually have instances of spark.collections.SortField.
The fix for this is trivial in that sortCanBeApplied should in fact be expecting sort fields of type ISortField.
ie. var sf:SortField = sort.fields[i]; should read var sf:ISortField = sort.fields[i];
I've kludged around this by converting all the sort fields to mx.collections.SortField in my class, but it's a long way from pleasant and I'd appreciate it being fixed properly!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira