This is a migrated thread and some comments may be shown as answers.

Grid column template

2 Answers 100 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Rodion Nikolaev
Top achievements
Rank 2
Rodion Nikolaev asked on 25 Aug 2014, 08:36 PM
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

Sort by
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!
 
0
Rodion Nikolaev
Top achievements
Rank 2
answered on 26 Aug 2014, 08:45 AM
So simple.
Thanks a lot.
Tags
Templates
Asked by
Rodion Nikolaev
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Rodion Nikolaev
Top achievements
Rank 2
Share this question
or