问题描述
我正在尝试在 footerTemplate 中显示字段的计数.按照是小提琴:
I am trying to display the count of the field in the footerTemplate.Follow is the fiddle:
http://jsbin.com/ajoyug/8/edit
但是,如果没有 footerTemplate 它工作正常.但是一旦我添加了footerTemplate,它就会停止工作.
However, without the footerTemplate it works fine. But as soon as I add the footerTemplate, it stops working.
在aggregateResult 对象中,我得到了count 的值.但是我该如何将它添加到 footerTemplate 中?
Inside the aggregateResult object I am getting the value of count. But then how shall I add it to the footerTemplate?
请帮助我.
谢谢!!
推荐答案
我无法解释为什么它不起作用.但是我尝试通过其他方式来做你的例子并且效果很好.
I could not explain why it's not working. But I have tried doing your example by other way and it works well.
这是链接.
http://jsbin.com/ajoyug/35/edit
这篇关于Kendo UI:无法将 footerTemplate 添加到网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!