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

template in template issue

1 Answer 72 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 13 Nov 2015, 01:27 AM

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.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 17 Nov 2015, 06:50 AM

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>     
</script>

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Templates
Asked by
Tony
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or