I have an issue with Advanced Data Grid..

for a column in ADG i have a item render which is another ADG so
when we have more records and Vertical scroll comes up.. the scroll
bar is not working..

pls help me..If anyone knows about this..



I ma attaching the code with this..


============MasterGrid.mxml=====================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.google.com/url?sa=D&q=http://www.adobe.com/2006/mxml&usg=AFQ\
jCNEtcLsIWFCjy8rhxFxIJ8W2RHUpyw> "
layout="vertical" height="200">
<mx:Script>
         <![CDATA[
                 import mx.collections.HierarchicalData;


                 private var masterData:Array = [
                         { OrderId: 10248, CustomerId:"WILMK",
EmployeeId:5, OrderDate:"1-
Feb-2007",
                 children:[
                                     [
                                         {ProductId:11,
ProductName:"Quesbo Cabrales", UnitPrice:
14, Quantity:12, Discount:0, Price:168},
                                         {ProductId:42,
ProductName:"Singaporean Hokkien Fried
Mee", UnitPrice:9.8, Quantity:10, Discount:0, Price:98},
                                         {ProductId:42,
ProductName:"Mozzarella di Giovanni",
UnitPrice:34.8, Quantity:5, Discount:0, Price:174}
                                     ]
                                         ]},


                          { OrderId: 10249, CustomerId:"TRADH",
EmployeeId:6, OrderDate:"3-
Feb-2007",
                              children:[
                             [
                                 {ProductId:51, ProductName:"Manjimup
Dried Appels",
UnitPrice:42.4, Quantity:40, Discount:0, Price:1696},
                                 {ProductId:14, ProductName:"Tofu",
UnitPrice:18.6, Quantity:
9, Discount:0, Price:167.4}
                             ]
                          ]},


                          { OrderId: 10250, CustomerId:"HANAR",
EmployeeId:4, OrderDate:"4-
Feb-2007",
                              children:[
                              [
                                 {ProductId:51, ProductName:"Manjimup
Dried Appels",
UnitPrice:42.4, Quantity:35, Discount:0.15, Price:1261},
                                 {ProductId:41, ProductName:"Jack's Clam
Chowder", UnitPrice:
7.7, Quantity:10, Discount:0, Price:77},
                                 {ProductId:65, ProductName:"Hot pepper
Sauce", UnitPrice:
16.8, Quantity:10, Discount:0.15, Price:214.2}
                              ]
                          ]}
         ];


         ]]>
</mx:Script>


<mx:AdvancedDataGrid dataProvider="{new HierarchicalData(masterData)}"
variableRowHeight="true" width="600" height="100%">
         <mx:columns>
                 <mx:AdvancedDataGridColumn dataField="OrderId"
headerText="Ordere
ID" width="100"/>
                 <mx:AdvancedDataGridColumn dataField="CustomerId"
headerText="Customer ID" />
                 <mx:AdvancedDataGridColumn dataField="EmployeeId"
headerText="Employee ID" />
                 <mx:AdvancedDataGridColumn dataField="OrderDate"
headerText="Order
Date" />
         </mx:columns>


         <mx:rendererProviders>
                 <mx:AdvancedDataGridRendererProvider depth="2"
columnIndex="1"
renderer="DetailGrid" columnSpan="0" />
         </mx:rendererProviders>
</mx:AdvancedDataGrid>


</mx:Application>


============ENDMasterGrid.mxml=====================
============DetailGrid.mxml=====================
<?xml version="1.0" encoding="utf-8"?>
<mx:AdvancedDataGrid xmlns="*" xmlns:mx="http://www.adobe.com/2006/
<http://www.google.com/url?sa=D&q=http://www.adobe.com/2006/&usg=AFQjCNH\
Fzt7z9hqXBFtLK3gJBfZMJ5Qchw>
mxml">
    <mx:Script>
      <![CDATA[
         override public function set data(value:Object):void
         {
            dataProvider = value;
         }
      ]]>
    </mx:Script>


   <mx:columns>
     <mx:AdvancedDataGridColumn dataField="ProductId"
headerText="Product ID" />
     <mx:AdvancedDataGridColumn dataField="ProductName"
headerText="Product Name" />
     <mx:AdvancedDataGridColumn dataField="UnitPrice"  />
     <mx:AdvancedDataGridColumn dataField="Discount"  />
     <mx:AdvancedDataGridColumn dataField="Price"  />
   </mx:columns>


</mx:AdvancedDataGrid>

Please do help me..

Reply via email to