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.

有帮助吗?

解决方案

Very simple you forgot

#=value#

just replace with

columns: [
          { field: "tupleregex", title: "Tuple Regex",
          groupHeaderTemplate: "#= value # :(Count: #=count#)" }
         ]
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top