Try to turn on this attribute on ADG to on . verticalScrollPolicy="on" Ann
--- On Thu, 1/28/10, Nani <moha...@yahoo.com> wrote: From: Nani <moha...@yahoo.com> Subject: [flexcoders] ADG as ITEM RENDERER for another ADG scroll bar not performing good.. To: flexcoders@yahoogroups.com Date: Thursday, January 28, 2010, 12:17 PM 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" 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:AdvancedDataGrid Column dataField="OrderId" headerText=" Ordere ID" width="100"/> <mx:AdvancedDataGrid Column dataField="Customer Id" headerText=" Customer ID" /> <mx:AdvancedDataGrid Column dataField="Employee Id" headerText=" Employee ID" /> <mx:AdvancedDataGrid Column dataField="OrderDat e" headerText=" Order Date" /> </mx:columns> <mx:rendererProvider s> <mx:AdvancedDataGrid RendererProvider depth="2" columnIndex= "1" renderer="DetailGri d" columnSpan=" 0" /> </mx:rendererProvide rs> </mx:AdvancedDataGri d> </mx:Application> ============ ENDMasterGrid. mxml===== ========= ======= ============ DetailGrid. mxml===== ========= ======= <?xml version="1.0" encoding="utf- 8"?> <mx:AdvancedDataGrid xmlns="*" xmlns:mx="http://www.adobe. com/2006/ mxml"> <mx:Script> <![CDATA[ override public function set data(value:Object) :void { dataProvider = value; } ]]> </mx:Script> <mx:columns> <mx:AdvancedDataGrid Column dataField="ProductI d" headerText=" Product ID" /> <mx:AdvancedDataGrid Column dataField="ProductN ame" headerText=" Product Name" /> <mx:AdvancedDataGrid Column dataField="UnitPric e" /> <mx:AdvancedDataGrid Column dataField="Discount " /> <mx:AdvancedDataGrid Column dataField="Price" /> </mx:columns> </mx:AdvancedDataGri d> Please do help me..