I have this dojo :
I am trying to pass an extra parameter to a template with:
detailTemplate: kendo.template($("#detail-template").html())({someParam: 'someValue'})
However, when I do this, I can no longer use the variables coming from the data source. When I uncomment these variables, it gives an error (see console output)
<div> Name: #: /*name*/ # </div> <div> Age: #: /*age*/ # </div>
How to use datasource variables and an external variable in a kendo template?
source share