set field value in aggrigate groupHeaderTemplate

Tag: kendo-grid , aggregates Author: jasonmilward Date: 2013-09-18

I am trying to aggregate a kendo grid and want to set the field value in groupHeaderTemplate to something like this:

columns: [
          { field: "tupleregex", title: "Tuple Regex",
          groupHeaderTemplate: "#=tupleregex# :(Count: #=count#)" }
         ]

But this returns the error tupleregex is not defined.

Best Answer

Very simple you forgot

#=value#

just replace with

columns: [
          { field: "tupleregex", title: "Tuple Regex",
          groupHeaderTemplate: "#= value # :(Count: #=count#)" }
         ]