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

HierarchicalCollectionView only accepts sort fields of type mx.collections.SortField instead of any ISortField implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Apache Flex 4.8 (parity release)
    • None
    • Advanced Data Grid
    • None

    Description

      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!

      Attachments

        Activity

          People

            Unassigned Unassigned
            trevor Trevor North
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: