Search code examples
asp.net-mvc-4razorkendo-uifooterkendo-grid

How to access the kendo grid footer template value


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

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..

enter image description here

can somebody please tell me that how to get a value from footer template..


Solution

  • 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.

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

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