如何访问Kendo网格页脚模板值 [英] How to access the kendo grid footer template value

查看:59
本文介绍了如何访问Kendo网格页脚模板值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用kendo工具和asp.net mvc4开发了一个Web应用程序.

i have developed a web application using kendo tools and asp.net mvc4..

下面是我正在使用的网格的屏幕截图,我需要在总计股票"列下获取页脚的值.根据此,总值为74,050.85美元.

below is a screenshot of the grid i'm using and i need to get the value of footer under the "Total Stock" column.. according to this, the total value is $74,050.85..

我需要将此值分配给文本框或变量,并在其他地方使用它,但在线资源没有积极反馈.

i need to assign this value to a text box or a variable and use it in some where else but there no positive feedback from the online resources..

有人可以告诉我如何从页脚模板中获取价值..

推荐答案

您可以通过设置

You can get the footer aggregate values (such as total) by setting a footerTemplate. That footer template can execute arbitrary code such as updating a textbox value.

另一种选择是使用jQuery获取页脚的文本:

The other option is to use jQuery to get the text of the footer:

var totalText = $("#grid .k-footer-template").text();

这篇关于如何访问Kendo网格页脚模板值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆