Adobe Flex:AdvancedDataGrid分组列 - 性能

时间:2011-05-10 04:11:47

标签: flex performance adobe advanceddatagrid

当我创建一个包含1000列的网格时,ADG表现良好。当我创建分组列时,垂直滚动条的性能真的很糟糕。

比如,我有一个父列,里面有10个子列。像这样,我有100个父列。当我在此表上显示50行记录时,水平滚动条在使用栏拖动时会花费大量时间。

<fx:Script>
<![CDATA[
    private var dp:Array = [
        { symbol: "ADBE", name: "Adobe Systems Inc.", price: 49.95,high: 40, low: 1, av:23, med: 5 }, <br>
        { symbol: "ADBE", name: "Adobe Systems Inc.", price: 49.95,high: 40, low: 1, av:23, med: 5 }, <br>
        { symbol: "ADBE", name: "Adobe Systems Inc.", price: 49.95,high: 40, low: 1, av:23, med: 5 } <br>
    ];
]]> <br>
</fx:Script>                

<mx:AdvancedDataGridColumn headerText="col1"  dataField="symbol"/>
<mx:AdvancedDataGridColumn headerText="name"  dataField="name"/>
<mx:AdvancedDataGridColumnGroup headerText="price1">
    <mx:AdvancedDataGridColumn headerText="price" dataField="price"/>
    <mx:AdvancedDataGridColumn headerText="high" dataField="high"/>
    <mx:AdvancedDataGridColumn headerText="low" dataField="low"/>   
<mx:AdvancedDataGridColumn headerText="av" dataField="av"/> 
<mx:AdvancedDataGridColumn headerText="med" dataField="med"/>
</mx:AdvancedDataGridColumnGroup>

1 个答案:

答案 0 :(得分:0)

mx AdvancedDataGrid在列数较多时出现性能问题..(滚动条性能不佳)

有时它无法绘制网格 您可以使用基于火花的柔性网格或创建自己的自定义火花网格。