script tag inside external kendo template

3 posts, 0 answers
  1. Ori
    Ori avatar
    10 posts
    Member since:
    Feb 2015

    Posted 20 Apr 2015 Link to this post

    Hello,

    is it possible to include javascript that is executed once inserted into DOM along with the rest of Kendo template?

    I'm aware it's not recommended as the best practice but it seems to be the easiest solution for my team as we use various components in plenty of kendo templates and it would not be sustainable to initialize each and every component every time kendo template is rendered.

    Regards

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 22 Apr 2015 Link to this post

    Hi,

    I think that what you describe may be possible, but I am not sure to which external template implementation you refer to, since Kendo UI does not offer a built-in support for external templates. 

    Regards,
    Petyo
    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. Ori
    Ori avatar
    10 posts
    Member since:
    Feb 2015

    Posted 22 Apr 2015 in reply to Petyo Link to this post

    Hello Petyo,

    I was referring to templates wrapped in <script type="text/x-kendo-template" /> tag. Not sure if this was purely Kendo functionality since we added plenty of code during the time already, but turns out using escaped script end tag <\/script> made Kendo templating engine stop complaining.

    BR

Back to Top