1 Reply Latest reply on Feb 6, 2012 2:29 PM by DonMitchinson

    Sort Column Date - DataGrid - Flex 4.5.1

    MarcosNunes

      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