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

User can use compare function of a SortField instance without Sort instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a SortField instance under "<fx:Declarations>" tag.
      2. Set "compareFunction" of this SortField instance to "sortCompareFunction" property of a DataGridColumn.

      Actual Results:
      We can use compare function of SortField without Sort.

      Expected Results:
      SortField should not be used without Sort wapper.

      Workaround (if any):

      User can use compare function of spark Sort and SortField both.
      The Sort with a property SortField way is clear and good.
      But for the SortField only, it's not so clearly on strategy of Sort/SortField.

      <fx:Declarations>
      <s:SortField id="sfSingle" name="name" />
      </fx:Declarations>
      <mx:DataGrid dataProvider="

      {dataXmlListArrSAdd}

      " width="100%" height="100%">
      <mx:columns>
      <mx:DataGridColumn dataField="name" sortCompareFunction="

      {sfSingle.compareFunction}

      "/>
      </mx:columns>
      </mx:DataGrid>

      We may add some document to guide user what is the best practice of using Sort and SortField.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: