Dig into DataGrid and look for
sortDirection, sortIndex (I think) and placeSortArrow. The latter being the
only one that’s documented. sortDirection may also help with your ascending/descending
issue. Matt From: Robin Hilliard
[mailto:[EMAIL PROTECTED] 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 separate sort functions for each direction. I'm trying to track the sort
column and ascending/descending as instance properties in my view - this almost
works but under some conditions the arrows in the header get out of sync with
my asc/desc property. Is there a way to dig into the header_mc property of the
datagrid and force the up/down arrow to display one way or the other? Thanks, Robin /02/2005,
at 5:27 PM, Matt Chotin wrote: 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 |