0 Replies Latest reply on May 19, 2011 3:04 PM by aaprieto

    AdvancedDatagrid Sort Problem

    aaprieto

      I am receiving an XML file with this format from an HTTPRequest:


      <?xml version="1.0" encoding="utf-8" ?>
      <ezware_response>

           <refresh_data>
              <INBQUERY>
                         <gen_date>20110519</gen_date>
                         <gen_time>151954</gen_time>
                    <data>
                                  <client_ref>7</client_ref>
                     </data>
                     <data>
                                  <client_ref>P</client_ref>
                     </data>
                     <data>
                                 <client_ref>L</client_ref>
                     </data>
              </INBQUERY>
         </refresh_data>
      </ezware_response>

       

       

      Then,  I created a program from the ResultEvent using this command:

       

      tdObjectCollectionRefresh=evt.result.ezware_response.refresh_data.INBQUERY.data;

       

        tdObjectCollectionRefresh is an ArrayCollection which I bind to the AdvancedDatagrid.  The AdvancedDatagrid does not seem to work properly when I try to sort it (ascending) by clicking the column heading.

       

      I'm not sure if I am doing something wrong, but it seems that it works properly if the first record is not a numeric value.

       

      Any help or inputs are greatly appeciated.

      Thanks.