Grid column template

3 posts, 1 answers
  1. Rodion Nikolaev
    Rodion Nikolaev avatar
    4 posts
    Member since:
    May 2014

    Posted 25 Aug 2014 Link to this post

    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. Answer
    Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 26 Aug 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Rodion Nikolaev
    Rodion Nikolaev avatar
    4 posts
    Member since:
    May 2014

    Posted 26 Aug 2014 Link to this post

    So simple.
    Thanks a lot.
Back to Top