You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Kessler CTR Mark J <ma...@usmc.mil> on 2016/08/09 12:38:24 UTC

RE: [Non-DoD Source] Datagrid sorting

Would you please create a JIRA issue [1] with a small test application that reproduces the problem.


[1] https://issues.apache.org/jira/browse/FLEX

-Mark

-----Original Message-----
From: zejuho [mailto:j.houllier@gmail.com]
Sent: Tuesday, August 09, 2016 6:51 AM
To: users@flex.apache.org
Subject: [Non-DoD Source] Datagrid sorting

Hi,

I used flex 4.14.1 Spark Datagrid with drag and drop, multi selection, ...
and had issues. One of them was the sorting on grid column value when data
is String and may be null. Indeed if i use null type for sortCompareType;
the nullCompare method reaffect the compareFunction to stringComapre as soon
as the first value are tested, why ?
So i implements SortFieldEx and GridSortFieldEx with much copy/paste code
since most of the pb code was private to test null value before Cast
String(null) which was ordering null values between M and O letters.

Since 4.15.0  are out, i was hoping that it may be fixed but actually New
Type GridSortFieldSimple and GridSortFieldComplex replace GridSortField, may
be my approach is wrong. Why nullCompare only test the first to values and
change the compareFunction, why stringCompare cast null to "null" and treat
it as a N value ?

Thanks in advance



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datagrid-sorting-tp13247.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.