Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
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="
" width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="name" sortCompareFunction="
"/>
</mx:columns>
</mx:DataGrid>
We may add some document to guide user what is the best practice of using Sort and SortField.