5 Replies Latest reply on Dec 5, 2006 11:33 AM by ALF247

    Datagrid Horizontal Scroll Issue

    mx:LJ
      Okay this should be a no brainer, I can not figure out why this grid does not let me scroll all the way to the end of the last column?? The vertical scroll bar scrolls to the bottom of last row just fine. Is this bug or something? When developing in flash I never had to work that my scroll bar never went to end of the datagrid...basic code below. Please someone chime in with thoughts ideas etc or if you have run across this problem. Thanks

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientColors="[#ffffff, #ffffff]">


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

      [Bindable]
      private var bookingsCollection:ArrayCollection = new ArrayCollection([
      {SLI:'1234',SKU:'1111',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'Omaha NE',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Ut sit amet arcu. Sed facilisis nisl vitae risus. Praesent vitae leo. Sed sed quam a pede semper venenatis. Cras lectus justo, aliquam non, venenatis in, ullamcorper ut, dui. Aenean eu massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus vulputate, dui vel eleifend pulvinar, mi elit volutpat turpis, at ultrices nibh tortor at ante. Nam fringilla tincidunt tortor.'},
      {SLI:'1235',SKU:'2111',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'Omaha NE',consolidator:'consol1',customerPO:'custPO1',commodity:'Gloves',qty:'1000',cases:'25', gweight:'200',cbm:'20',instructions:'Instructions Here'},
      {SLI:'1235',SKU:'3331',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'Omaha NE',consolidator:'consol1',customerPO:'custPO1',commodity:'Gloves',qty:'1000',cases:'25', gweight:'200',cbm:'20',instructions:'Ut sit amet arcu. Sed facilisis nisl vitae risus. Praesent vitae leo. Sed sed quam a pede semper venenatis. Cras lectus justo, aliquam non, venenatis in, ullamcorper ut, dui. Aenean eu massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus vulputate, dui vel eleifend pulvinar, mi elit volutpat turpis, at ultrices nibh tortor at ante. Nam fringilla tincidunt tortor.'},
      {SLI:'1236',SKU:'1211',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol2',customerPO:'custPO1',commodity:'Ladders',qty:'1000',cases:'25' ,gweight:'200',cbm:'10',instructions:'Instructions Here'},
      {SLI:'1237',SKU:'1121',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol2',customerPO:'custPO1',commodity:'Nails',qty:'1000',cases:'25',g weight:'200',cbm:'5.5',instructions:'Instructions Here'},
      {SLI:'1238',SKU:'3111',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol3',customerPO:'custPO1',commodity:'Hammers',qty:'1000',cases:'25' ,gweight:'200',cbm:'6',instructions:'Instructions Here'},
      {SLI:'1239',SKU:'1311',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1240',SKU:'1131',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1241',SKU:'1131',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1242',SKU:'1311',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1243',SKU:'1131',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1244',SKU:'3131',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1245',SKU:'3111',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1246',SKU:'1311',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Instructions Here'},
      {SLI:'1247',SKU:'1141',customer:'Brenmar Co',shipper:'Ningbo',consignee:'Ningbo',cityState:'City St',consolidator:'consol1',customerPO:'custPO1',commodity:'Shoes',qty:'1000',cases:'25',g weight:'200',cbm:'2',instructions:'Ut sit amet arcu. Sed facilisis nisl vitae risus. Praesent vitae leo. Sed sed quam a pede semper venenatis. Cras lectus justo, aliquam non, venenatis in, ullamcorper ut, dui. Aenean eu massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus vulputate, dui vel eleifend pulvinar, mi elit volutpat turpis, at ultrices nibh tortor at ante. Nam fringilla tincidunt tortor.'}
      ]);
      ]]>
      </mx:Script>
      <mx:Canvas width="954" height="188" >
      <mx:DataGrid height="173" id="consolidation_dg" dragEnabled="true" dropEnabled="true" dataProvider="{bookingsCollection}" dragMoveEnabled="true" editable="false" width="934" horizontalScrollPolicy="auto" x="10" y="5">
      <mx:columns>
      <mx:DataGridColumn headerText="SLI" dataField="SLI" editable="false" visible="true" />
      <mx:DataGridColumn headerText="SKU" dataField="SKU" editable="false" visible="true" />
      <mx:DataGridColumn headerText="Customer" dataField="customer" editable="false"/>
      <mx:DataGridColumn headerText="Shipper" dataField="shipper" editable="false"/>
      <mx:DataGridColumn headerText="Consignee" dataField="consignee" editable="false"/>
      <mx:DataGridColumn headerText="City/St" dataField="cityState" editable="false" />
      <mx:DataGridColumn headerText="Consolidator" dataField="consolidator" editable="false"/>
      <mx:DataGridColumn headerText="Cust PO" dataField="customerPO" editable="false"/>
      <mx:DataGridColumn headerText="Commodity" dataField="commodity" editable="false"/>
      <mx:DataGridColumn headerText="Qty." dataField="qty" editable="false" />
      <mx:DataGridColumn headerText="Cases" dataField="cases" editable="false" />
      <mx:DataGridColumn headerText="Grs Wt.(kg)" dataField="gweight" editable="false"/>
      <mx:DataGridColumn headerText="Cube" dataField="cbm" editable="false" />
      <mx:DataGridColumn headerText="Instructions" dataField="instructions" editable="false"/>
      </mx:columns>
      </mx:DataGrid>
      </mx:Canvas>
      </mx:Application>