views:

19

answers:

1

Hi,

I'm using AdvancedDataGrid to display data in a tree, variableRowHeight = true.

The problem is that if the value of the node is too high from the row height (according to the resolution) then only part of the node value is displayed and the scroll of the tree jumps directly to the next line without being able to scroll/view the whole value of the previous node. any idea how to handle this irritating bug!

A: 

here I'm posting a simple example application source that demostrates the problem:

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

        [Bindable]
        private var dpHierarchy:ArrayCollection= new ArrayCollection([
            {name:"Grandpa", total:70, children:[
                {name:"kernel32.dll, 0x76dee0e0\n" +
                "mscorwks.dll, 0x000007fef981f0bd\n" +
                "mscorwks.dll, 0x000007fef9dd2ed0\n" +
                "App_Web_vc6wsfpc.dll, 0x06000050\n" +
                "SYSTEM.WEB.REGULAREXPRESSIONS.DLL, 0x060000a2\n" +
                "SYSTEM.WEB.DLL, 0x060059e0\n" +
                "SYSTEM.WEB.DLL, 0x06002db7\n" +
                "SYSTEM.WEB.DLL, 0x06002db8\n" +
                "SYSTEM.WEB.DLL, 0x0600309f\n" +
                "SYSTEM.WEB.DLL, 0x06003098\n" +
                "SYSTEM.WEB.DLL, 0x06003097\n" +
                "SYSTEM.WEB.DLL, 0x06003092\n" +
                "App_Web_vc6wsfpc.dll, 0x0600006a\n" +
                "SYSTEM.WEB.DLL, 0x06000728\n" +
                "SYSTEM.WEB.DLL, 0x06000725\n" +
                "SYSTEM.WEB.DLL, 0x06000729\n" +
                "SYSTEM.WEB.DLL, 0x0600072a\n" +
                "App_Web_vc6wsfpc.dll, 0x06000013\n" +
                "SYSTEM.WEB.DLL, 0x060040a7\n" +
                "SYSTEM.WEB.DLL, 0x060040aa\n" +
                "SYSTEM.WEB.DLL, 0x06003048\n" +
                "SYSTEM.WEB.DLL, 0x0600309f\n" +
                "SYSTEM.WEB.DLL, 0x06003098\n" +
                "SYSTEM.WEB.DLL, 0x06003097\n" +
                "SYSTEM.WEB.DLL, 0x06003092\n" +
                "App_Web_vc6wsfpc.dll, 0x0600004d\n" +
                "SYSTEM.WEB.DLL, 0x06000226\n" +
                "SYSTEM.WEB.DLL, 0x060001d6\n" +
                "SYSTEM.WEB.DLL, 0x06000242\n" +
                "SYSTEM.WEB.DLL, 0x060001e8\n" +
                "SYSTEM.WEB.DLL, 0x0600069d\n" +
                "SYSTEM.WEB.DLL, 0x060021f1\n" +
                "SYSTEM.WEB.DLL, 0x060021f0\n" +
                "SYSTEM.WEB.DLL, 0x06000000\n" +
                "SYSTEM.WEB.DLL, 0x000007fef4bb6c34\n" +
                "mscorwks.dll, 0x000007fef998b07a\n" +
                "WEBENGINE.DLL, 0x000007fef0134f27\n" +
                "WEBENGINE.DLL, 0x000007fef0135fb9\n" +
                "WEBENGINE.DLL, 0x000007fef013182e\n" + 
                "WEBENGINE.DLL, 0x000007fef0131e94", total:130},                    
                {name:"Joe Smith", total:229}, 
                {name:"Alice Treu", total:230}
            ]}
        ]);         
    ]]> 
</mx:Script>

<mx:AdvancedDataGrid id="myADG" 
                     width="100%" height="100%" 
                     variableRowHeight="true">
    <mx:dataProvider>
        <mx:HierarchicalData source="{dpHierarchy}"/>
    </mx:dataProvider>
    <mx:columns>
        <mx:AdvancedDataGridColumn dataField="name" headerText="Name"/>
        <mx:AdvancedDataGridColumn dataField="total" headerText="Total"/>
    </mx:columns>   
</mx:AdvancedDataGrid>  

just copy this code and run it in Flex IDE, try to change the browser's height and you'll see that you cannot view the whole value of the node with the long string value!, the scroll jumps to view the next nodes.

Any idea?!

AngelHeart