sortCompareFunction is meant for you
controlling the sort regardless of whether you had a cell renderer. You just
need the DataGridColumn. In your case since the data is already formatted
using the labelFunction you may want the sortCompareFunction to work on the
unformatted value.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, October 07, 2005
2:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] date
sort
Ya I have tried that but from I understand that only
work when the date is from cell renderer. Mine is coming from a java object and
is using label to format it.
CONFIDENTIALITY STATEMENT - This message and any files or text attached to it
are intended only for the recipients named above, and contain information that
may be confidential or privileged. If you are not an intended recipient,
you must not read, copy, use, or disclose this communication. Please also
notify the sender by replying to this message, and then delete all copies of it
from your system. Thank you.
"Matt Chotin"
<[EMAIL PROTECTED]>
Sent
by: flexcoders@yahoogroups.com
10/05/2005 05:27 PM
Please
respond to
flexcoders@yahoogroups.com
|
|
To
|
<flexcoders@yahoogroups.com>
|
cc
|
|
Subject
|
RE: [flexcoders] date sort
|
|
If it’s not working by default you may want
to look into the sortCompareFunction on DataGridColumn.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Joe
Sent: Wednesday, October 05, 2005 2:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] date sort
Is
there a way to sort a date field in a data grid that is using a
labelfunction to get the date value. I have read that it can be done
when using a cell renderer, but I do not want to change the code. Can
this be done? Thanks.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS