flex3 - Sorting problem after grouping -
Here's my advance data grid without grouping,
Once I apply the closing, Looking down, looking down,
Here is a piece of code that is applied after grouping and the grouping selection is assigned to the grid.
validateNow (); Var s: Sort = New Sort (); S.fields = [New Order Field ("Danger")]; S.comparefunction = DangerArt Item; DataGrid.dataProvider.sort =; DataGrid.dataProvider.refresh ();
Here is my comparison function,
Personal Function Dangers (A: Object, B: object, field: array = null): int {return ObjectUtil .stringCompare (a.hazardnum.toString (), b.hazardnum.toString (), false); }
Comments
Post a Comment