0 Replies Latest reply on Feb 26, 2010 5:55 PM by quoc_thai

    Scrolling on AdvancedDataGrid again !

    quoc_thai Level 1

      Hi all,

         Three day ago, I posted ADG and Scroll article same as http://blogs.adobe.com/aharui/BlinkWhenChanged/dg.swf. At that moment, when I scroll up or down background color for cell not right. But now, read article from above link. I can solved my problem by extends AdvancedDataGridColumn. I can scroll on ADG and background color for cell correct.

         Above link, use a Array with data sample such as:

      private var dataSample:ArrayCollection = new ArrayCollection(

      [{ID:"a1", NAME:"david", VALUE: 20},

      {ID:"a2", NAME:"sussan", VALUE: 25},

      {ID:"a3", NAME:"peter", VALUE: 30},

      {ID:"a4", NAME:"karim", VALUE: 35},

      {ID:"a5", NAME:"karim", VALUE: 40},

      {ID:"a6", NAME:"karim", VALUE: 50},]);

           --> Working perfect !

       

       

         But I have a little change: I use tag RemoteObject to get data from Oracle such as:

      <mx:RemoteObject

       

      id="StockInfo"

      destination="

      GenericDestination"

      source="

      DBOperation.Operation"

      showBusyCursor="

      false"

      fault="faultHandler(event)"

      >

       

       

      <mx:method name="getTestData" result="setData(event)"/>

         

      And the setData method:

      private

       

      function setData(event:ResultEvent):void{

       

      var result:Array = event.result as Array;

      dataSample = new ArrayCollection(result);

      .....

      myAdg.dataProvoder = dataSample;

      ....

      }

       

       

           --> Background color not efffect, mean that when value changed but backgound color not changed ! It wrong because the setData method ?