Expand my Community achievements bar.

Sort Column Date - DataGrid - Flex 4.5.1

Avatar

Level 1

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

1 Reply

Avatar

Former Community Member

Hi Marcos,

This forum here is for questions related to the LiveCycle Collaboration Service product.

You might want to post your question to the Flex forum:

http://forums.adobe.com/community/flex/flex_general_discussion

Hope this helps.

Good luck,

Julien

LCCS Quality Engineering