I'm not sure if this is a bug, but I found this situation a while ago.
 The solution that I had to use was to keep track of the column header
that is clicked on, and then use that to get the appropriate dataField
from the object so that I could compare the two objects.

This is not that elegant of a solution, but seems to be working for
me.  If there is a better way to do this, I am all ears.


--- In [email protected], "jpwarmer" <[EMAIL PROTECTED]> wrote:
>
> Hi All, 
> 
> In Flex 1.5, if you want to use a custom sort for columns in dataGrid
> you could pass a function to the colunm. That function need to have
> the following signature:
> 
> mySortCompareFunction(obj1 : Object, obj2 : Object, columnIndex :
> Number) : Number
> 
> In this case, Flex will pass into obj1 and obj2, the data in the cells
> that need to be compared.
> 
> In Flex 2, the sort function signature has change into 
> 
> mySortCompareFunction(obj1:Object, obj2:Object) : int
> 
> and now, Flex pass into obj1 and obj2, the entires rows (as an object,
> of course).
>  
> I'm doing  a migration an that's what happening, so, is this a bug???
> o just is how it works now???
>









------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to