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

    DataGrid Sorting Issue with Hotfix2

    BerubeS
      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()">

      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;
      import mx.utils.ObjectProxy;

      [Bindable]
      public var dgData:ArrayCollection = new ArrayCollection();

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

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

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

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


      }

      ]]>
      </mx:Script>

      <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>
      <node label="Personal"/>
      </node>
      <node label="Outbox">
      <node label="Professional"/>
      <node label="Personal"/>
      </node>
      <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"/>
      </node>
      </mx:XMLList>

      <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>
      </mx:Canvas>
      <mx:Canvas label="DataGrid Issue">
      <mx:DataGrid id="dgTest" dataProvider="{dgData}" width="500" height="300" x="10" y="10">
      <mx:columns>
      <mx:DataGridColumn headerText="Filled Row" dataField="filled"/>
      <mx:DataGridColumn headerText="Partially Filled Row" dataField="partial"/>
      </mx:columns>
      </mx:DataGrid>
      <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"/>
      </mx:Canvas>
      </mx:TabNavigator>
      </mx:Application>
        • 1. Re: DataGrid Sorting Issue with Hotfix2
          JabbyPandaUA Level 3
          Hi,

          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:
          jabbypanda.com/blog/?p=25