5 Replies Latest reply on Jul 23, 2011 4:27 AM by biedy

    AdvancedDataGrid Grid Lines disappear towards end in Flash 10.0.0 and up

    vijaych1209 Level 1

      Following code when run with flash 9.0.24 shows ADG grid lines properly. Scroll to the very end horizontally.

      Same code run with 10.0.0 and up makes the grid lines disappear towards the end. Scroll to the very end horizontally.

       

      Is this a bug with newer flash version(s). If so how could this be fixed.

       

      ****************************************************************************************** ******************************************************************************

       

       

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

      <mx:Application width="100%" height="100%"

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"

      creationComplete="init()">

      <mx:Canvas width="100%" height="100%">

      <mx:Script>

      <![CDATA[

      import mx.controls.advancedDataGridClasses.AdvancedDataGridColumnGroup;

      import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;

      private function init() : void {

      var colsReportGrid:Array = reportGrid.groupedColumns;

      var arr1:Array = ["Test1", "Test2", "Test3"];

      var arr2:Array = ["Sample1", "Sample2", "Sample3"];

      for each (var test:String in arr1) {

      var colTest:AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup(test);

      for each(var sample:String in arr2) {

      var colSample:AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup(sample);

      colSample.children = getDataColumns();

      colTest.children.push(colSample);

      }

      colsReportGrid.push(colTest);

      }

      reportGrid.groupedColumns = colsReportGrid;

       

      }

      private function getDataColumns() : Array {

       

      var colMed:AdvancedDataGridColumn = new AdvancedDataGridColumn("Medium");

       

      var colClientMed:AdvancedDataGridColumn = new AdvancedDataGridColumn("Client Medium");

       

      var colHigh:AdvancedDataGridColumn = new AdvancedDataGridColumn("High");

       

      var colClientHigh:AdvancedDataGridColumn = new AdvancedDataGridColumn("Client High");

       

      var colLow:AdvancedDataGridColumn = new AdvancedDataGridColumn("Low");

       

      var colClientLow:AdvancedDataGridColumn = new AdvancedDataGridColumn("Client Low");

       

      return [colMed, colHigh, colLow, colClientMed, colClientHigh, colClientLow];

      }

       

      ]]>

      </mx:Script>

      <mx:AdvancedDataGrid id="reportGrid" width="100%" height="100%" verticalScrollPolicy="auto" horizontalScrollPolicy="auto">

      <mx:groupedColumns>

      <mx:AdvancedDataGridColumn headerText="Column 1" />

      <mx:AdvancedDataGridColumn headerText="Column 2" />

      <mx:AdvancedDataGridColumn headerText="Column 3"/>

      </mx:groupedColumns>

      </mx:AdvancedDataGrid>

      </mx:Canvas>

      </mx:Application>

      ****************************************************************************************** **********************************************************************************