I have this dojo:
I am trying to pass additional parameter to template via:
detailTemplate: kendo.template($("#detail-template").html())({someParam: 'someValue'})
However when I do this, I can't no more use variables coming from data source. When I uncomment those variables it gives error(see console output)
<div>
Name: #: /*name*/ #
</div>
<div>
Age: #: /*age*/ #
</div>
How can I use both datasource variables and external variable in kendo template?
detailTemplate: function(dataItem){
dataItem.someParam = 'someValue';
return kendo.template($("#detailTemplate").html())(dataItem);
}
dojo: http://dojo.telerik.com/OvASO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With