1 Reply Latest reply on Jun 3, 2007 2:23 PM by JabbyPandaUA

    DataGrid Sorting Issue with Hotfix2

      I already opened a ticket with Adobe on this, but since this is a critical issue for us I wanted to post a message to see if anyone has any idea where the issue in flex sdk lies.

      Check tab 2 of the sample app, Sorting a datagrid who's column only has partial data causes an error, works fine on Hotfix 1 (same test)

      Sample App:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationComplete()">

      import mx.collections.ArrayCollection;
      import mx.utils.ObjectProxy;

      public var dgData:ArrayCollection = new ArrayCollection();

      public function creationComplete():void
      var object:ObjectProxy;
      object = new ObjectProxy();
      object["filled"] = "Filled A";
      object["partial"] = "Partial A";

      object = new ObjectProxy();
      object["filled"] = "Filled B";
      object["partial"] = "Partial B";

      object = new ObjectProxy();
      object["filled"] = "Filled C";

      object = new ObjectProxy();
      object["filled"] = "Filled D";



      <mx:XMLList id="treeData">
      <node label="Mail Box">
      <node label="Inbox">
      <node label="Marketing"/>
      <node label="Product Management">
      <node label="Large node Large Node Large Node Large Node"/>
      <node label="Personal"/>
      <node label="Outbox">
      <node label="Professional"/>
      <node label="Personal"/>
      <node label="Spam"/>
      <node label="Sent"/>
      <node label="Spam2"/>
      <node label="Sent2"/>
      <node label="Spam3"/>
      <node label="Sent3"/>
      <node label="Spam4"/>
      <node label="Sent4"/>
      <node label="Spam5"/>
      <node label="Sent5"/>
      <node label="Spam6"/>
      <node label="Sent6"/>

      <mx:TabNavigator height="100%" width="1005">
      <mx:Canvas label="Tree Issue">
      <mx:Text x="284" y="51" fontSize="16" fontWeight="bold" text="Issue: Expand the tree node to open up Product Management node, no Horizontal Scroll bar appears." width="390"/>
      <mx:Canvas verticalScrollPolicy="auto" horizontalScrollPolicy="auto">
      <mx:Tree x="50" y="50" width="226" height="303" dataProvider="{treeData}" labelField="@label" verticalScrollPolicy="auto" horizontalScrollPolicy="auto"/>
      <mx:Canvas label="DataGrid Issue">
      <mx:DataGrid id="dgTest" dataProvider="{dgData}" width="500" height="300" x="10" y="10">
      <mx:DataGridColumn headerText="Filled Row" dataField="filled"/>
      <mx:DataGridColumn headerText="Partially Filled Row" dataField="partial"/>
      <mx:Text x="10" y="318" fontSize="16" fontWeight="bold" text="Issue: Toggle the sort in the column that has only partial data. You will get a find criteria error. This worked in Hotfix 2 and was broke in Hotfix 2." width="390"/>
        • 1. Re: DataGrid Sorting Issue with Hotfix2
          JabbyPandaUA Level 3

          With new hotfixes some bugs ( most of bugs) in Flex SDK are get fixed, but rarely new (sometimes critical) bugs can appear.

          Before Flex 3 release which will allow on IDE level to switch between different versions of Flex SDK on the fly, I would advice you to store locallly copy of all versions of Flex 2 SDK released to the public. Then, in case if you will encounter a serious bug in the most recent release of Flex 2 SDK, you can fix it by yourlself by reusing the old code from former release of Flex 2 SDK.

          See what I did with found bug in Flex 2.0.1 release, which is what not present in Flex 2.0 SDK release: