Top posting to try to collect replies in one post...

Looks like it might be possible to create subclasses of GridColumn that
return regular SortFields.  The key is to explicitly provide the DataGrid
with an ArrayList of your GridColumn subclasses so it doesn't go and
generate its own.  Then you might be able to get better sorting without
having to resort to sorting outside of the DataGrid.  Not sure if that
will be less work or not.

If Justin has time, I'd be curious to see results of using ObjectProxy
instead of Object in the tests he ran.  In my experience, ObjectProxy can
be noticeably slow.

Maybe Mihai, who has been in this area of the code, will find some time to
tune it up for a future release.

HTH,
-Alex

On 7/25/16, 12:54 AM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>> Well, just out of curiosity, I decided to put the currencyFormatters and
>> Filters back in, and then I created two buttons and two button handlers
>>that
>> would sort my arrayCollection both ascending and decending outside of
>>the
>> datagrid and then refresh the datagrid, and about fell out of my chair.
>
>Yes that would be faster as it’s not using the Spark data grid sorting
>code but basically using the same code the mx datagrid uses in the
>default case (i.e. what's in ListCollectionView).
>
>>  and write 52 sorting routines for ascending and descending.
>
>It likely those methods can be reused for similar columns so probably not
>quite not quite that many as you think may be needed.
>
>> By the way, you may want to give a heads up to the team on the sorting
>>of
>> large datasets on a spark datagrid.  It isn't pretty.
>
>Both Alex and I are on the team, however given there workarounds and
>volunteer time is limited it may r may not get looked at. It may be a
>good idea to raise a JIRA [1] so the issue is not forgotten about, other
>people can easily find it if they run into it.
>
>Thanks,
>Justin
>
>1. https://issues.apache.org/jira/browse/FLEX

Reply via email to