incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan DINU <flex.programm...@gmail.com>
Subject Re: Sort Column Date - DataGrid - Flex 4.5.1
Date Sat, 04 Feb 2012 06:54:04 GMT
Hi,

in your code you declared the function as data tip
function. sortCompareFunction is the name of the function for sorting.

Best regards,
Bogdan

On Fri, Feb 3, 2012 at 7:22 PM, Marcos Nunes <marcos.a.nunes@gmail.com>wrote:

> Hi
>
> I made download the function (below)  to sort column date in DateGrid, but
> is not working
>
> private function date_sortCompareFunc(itemA:Object, itemB:Object):int
> {
>   var dateA:Date=new Date(Date.parse(itemA.dob));
>   var dateB:Date=new Date(Date.parse(itemB.dob));
>   return ObjectUtil.dateCompare(dateA, dateB);
> }
>
> <s:GridColumn dataField="DATA_VENCIMENTO_ID"
>    width="115"
>    headerText="Data Vencimento"
>    dataTipFunction="date_sortCompareFunc">
>
> someone can help me?
>
> Marcos Nunes
>



-- 
http://www.badu.ro

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message