Wait, who does the initial sorting, the
remote object or the DataGrid? If you’re calling Array.sortOn yourself
make sure you’re passing in Array.NUMERIC as an option.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Drew Hite
Sent: Friday, November 18, 2005
7:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] default
sorting for DataGrid
Hi,
I'm using a remote object to populate a DataGrid
with
an array of custom java objects. When the
DataGrid is
first rendered, I want to sort its records using
an
int field from the java object. However, this
grid is
always initially sorted as if the int field were
of
type String. Clicking on the column header
rectifies
this problem so the DataGrid seems to realize that
the
values in that column are numeric.
Additionally, I've
verified that the remote object gets a properly
sorted
array. Can anyone tell me what's going
on? Any
suggestions on how to solve this problem?
I've
experimented with adding functions to sort the
grid
after certain events, but I can't find the right
data
grid event. I'm a newbie. My apologies
in advance
for my ignorance.
Thanks,
Drew
__________________________________
Start your day with Yahoo! - Make it your home
page!
http://www.yahoo.com/r/hs
--
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
|