Hello devs,
my advanceddatagrid where dataprovider is a HierarchicalData which creates hierarchical tree. Now if I expand all the folder nodes and then click the top most "ROOT" folder node then instead of smoothly sliding/shrinking it just collapses, which means no smooth transition or animation. As you all know that the advanceddatagrid suppose to expand and collapse smoothly but it does not happen in this instance. I am attaching this small code. If you expand the whole tree then press the ROOT node to collapse the whole expanded tree you will see what I am saying. Regards.... <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.collections.HierarchicalData; import mx.collections.ArrayCollection; [Bindable] private var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:"ROOT", type:"a",children: [ {Region:"Portfolio 01", type:"b",children: [ {Region:"Project 01", Actual:38865, Estimate:40000}, {Region:"Project 02", Actual:29885, Estimate:30000}]}, {Region:"Portfolio 02", type:"b",children: [ {Region:"Project 01", Actual:29134, Estimate:30000}]}, {Region:"Portfolio 03", type:"b",children: [ {Region:"Project 01", Actual:52888, Estimate:45000}]}, {Region:"Portfolio 04", type:"b",children: [ {Region:"Project 01", Actual:38805, Estimate:40000}, {Region:"Project 02", Actual:55498, Estimate:40000}]}, {Region:"Portfolio 05", type:"b",children: [ {Region:"Project 01", Actual:44985, Estimate:45000}, {Region:"Project 02", Actual:44913, Estimate:45000}]}, {Region:"Portfolio 06", type:"b",children: [ {Region:"Project 01", Actual:44985, Estimate:45000}, {Region:"Project 02", Actual:44913, Estimate:45000}]}, {Region:"Portfolio 07", type:"b",children: [ {Region:"Project 01", Actual:44985, Estimate:45000}, {Region:"Project 02", Actual:44913, Estimate:45000}]}, {Region:"Portfolio 08", type:"b",children: [ {Region:"Project 01", Actual:44985, Estimate:45000}, {Region:"Project 02", Actual:44913, Estimate:45000}]}, {Region:"Portfolio 09", type:"b",children: [ {Region:"Project 01", Actual:44985, Estimate:45000}, {Region:"Project 02", Actual:44913, Estimate:45000}]} ]} ]); ]]> </mx:Script> <mx:AdvancedDataGrid id="adg1" designViewDataType="tree" width="15%" height="70%"> <mx:dataProvider> <mx:HierarchicalData id="hd1" source="{dpHierarchy}"/> </mx:dataProvider> <mx:columns> <mx:AdvancedDataGridColumn dataField="Region"/> </mx:columns> </mx:AdvancedDataGrid> </mx:Application>