Grid - feature request: aggregate row - Ext JS

本文讨论了在一个表格组件中实现聚合功能的方法,包括求和和平均值等,并提到了通过自定义渲染器来实现这一功能的可能性。同时,文章还探讨了如何在编辑模式下实时更新这些聚合数据。
Hi jack,

one feature request, if it's reasonable:
perhaps an aggregate row (sum / average / custom aggregate function) for the Grid?
Reply With Quote
  #2  
Old 03-01-2007, 02:01 AM
Default

This is already doable with a custom renderer.
Reply With Quote
  #3  
Old 03-01-2007, 02:15 AM
Default

thanks jeff. i'll go dig some more then.
Reply With Quote
  #4  
Old 03-01-2007, 02:37 AM
Default

One thing I thought of after I'd answered and that's that you probably aren't going to end up with auto-updating aggregate fields without quite a bit more work. But, it's not impossible. You'll just have to listen for cell updates (if editing is enabled) and force a recalc where appropriate.
Reply With Quote
  #5  
Old 03-01-2007, 05:27 AM
Default

Hey ...take a look at this
http://www.rodrigodiniz.qsh.eu/Sumarize.aspx
There is sum and avg implemented...
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com
Reply With Quote
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值