template in template issue

2 posts, 0 answers
  1. George
    George avatar
    48 posts
    Member since:
    Apr 2014

    Posted 12 Nov 2015 Link to this post

    I am using the mvvm template system to build a page in my application. My main template uses a template inside of it. The data is bound by referencing an array of data that exists inside a object that the main template references as its source. It "mostly" works. However, I noticed that some of the data for the "template in the template" is not printing to the view port. Also, there are random empty list objects being printed to the dom. I have create a dojo to show you my issue: http://dojo.telerik.com/EVefA


    Pleas advise.

  2. Rosen
    Rosen avatar
    3215 posts

    Posted 17 Nov 2015 Link to this post

    Hello George,

    The cause for the issue is invalid HTML markup. In the child template the li element is not closed correctly. It should be similar to the following:

    <script id="appointments-template" type="text/x-kendo-template">
       <li><a href="\\#" data-bind="html:apptTimes"></a></li>     

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top