0

One update: I tried using the SummaryRow on the datagrid for its basic functionalities and it is working. Now, I need to embed the text in the summary fields. E.g. If one of my summaryfields returns me the count then it should be able to display 'TOTAL (count)'

Is it possible with the summaryrow?

Also, I need to have the data to be formatted when it is displayed. e.g. %age, like 50%, 0.1%, etc.

Is this also possible?

Hi, One quick question. I have an AdvancedDataGrid. I need to add a summaryrow to the grid which will contain SUM/AVERAGE of the respective columns in the ADG. Can anyone point me to some tutorial or any reference where I can learn how to create a summaryrow? Thanks!

4

2 回答 2

0

adobe 的 advancedDataGrids 介绍包含一个演示,但它似乎不再出现在网络上。您是否尝试过查看 SummaryField 参考?我有一段时间没有使用汇总字段了,但它看起来很简单。

http://livedocs.adobe.com/flex/3/langref/mx/collections/SummaryField.html

这实际上是一个格式化示例,但它包含创建摘要行的所有代码:

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=11472

于 2009-04-22T20:49:20.383 回答
0

实际上,我发现的最简单和最简单的方法是在现有 ADG 下方放置另一个 ADG。新的 ADG 将充当摘要行,因此将只有一行。初始化内容 ADG 后,我们可以按照我们想要的方式渲染摘要 ADG 的单元格。此外,我们可以将新摘要 ADG 的水平滚动与内容 ADG 同步。所以,总而言之,它实际上将被视为带有摘要行的 ADG

尽管它实际上不是摘要行并且需要大量自定义,但使用它确实有意义。:)

于 2009-07-03T16:28:33.617 回答