Please help. How to load grid column template from <script> tag with mvvm.
Example here: http://dojo.telerik.com/Ivuy/3
When i add template:'kendo.template($('#name-template').html())' all break.
2 Answers, 1 is accepted
0
Accepted
Dimo
Telerik team
answered on 26 Aug 2014, 08:27 AM
Hi Rodion,
Please remove the apostrophes around the kendo.template(...) expression. This is a function call, not a string.
On a side note, even if apostrophes were needed, the code would be still incorrect, because there are nested apostrophes around #name-template, which would need to be escaped in that case.
Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!