I've solved this problem in the past by using the sort() function of
the Array class, which takes a compare function as its only argument.
Assuming that you are using an array as the data provider of your
grid, you can sort the array and then display the sorted data in the
grid. You'll have to rig
4
(0)870 749 1200 w: www.prismix.com
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
LaingSent: 04 May 2005 15:22To:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Datagridcolumn
sortCompareFunction
I've solved this problem
Yep, looks like we only pass you the values,
not the object for the rows themselves. Guess you’ll need to set sortOnHeaderRelease
to false and instead call sortItems yourself with a custom compareFunc.
Matt
From: Robin Hilliard
[mailto:[EMAIL PROTECTED]
Sent: Monday, Febru
Thanks Matt, had grabbed wrong end of the stick on that one.
Much closer now. Noticed that the compare callback for sortItems doesn't get the third "array flags" argument mentioned in the docs - I was going to see if that would specify ascending or descending order, worked around by having separat
, February 15, 2005
3:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
DataGridColumn sortCompareFunction arguments dua l personality
Thanks Matt,
had grabbed wrong end of the stick on that one.
Much
closer now. Noticed that the compare callback for sortItems doesn't ge
5 matches
Mail list logo