This is a migrated thread and some comments may be shown as answers.

[Solved] Can we access the column value in group footer template

1 Answer 712 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay Salunkhe
Top achievements
Rank 1
Sanjay Salunkhe asked on 15 Apr 2015, 03:29 PM

Just as we can access "value" in groupHeaderTemplate, is it possible to access "value" (essentially the column value) from the group footer template.

For example: in the group header template we have something like:

<script id="productCodeTemplate" type="text/x-kendo-tmpl">   
    # var product = value; productArr = product.split(";"); #
</script>

so can we do "var product = value" in the group footer template as well? since when i try this it does not work (says value is not defined)

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Apr 2015, 08:54 AM

Hello Sanjay,

The data object that comes by default inside the template holds information about the column name and the aggregates value. Here is an example:

http://dojo.telerik.com/EwOGA

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Sanjay Salunkhe
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or