Question

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.

Was it helpful?

Solution

Very simple you forgot

#=value#

just replace with

columns: [
          { field: "tupleregex", title: "Tuple Regex",
          groupHeaderTemplate: "#= value # :(Count: #=count#)" }
         ]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top