One of the ListViews displays no content when applying a template. For example, this section:
Produces no LI elements, only the enclosing UL element
When the UL attribute "data-role" is removed, the list displays the three items.
This might have to do with data binding, even though the above UL list does not work with dynamic data.
- bind data when calling the template from the view that uses the template:
- bind data when navigating to the view:
Any ideas what can cause this issue?
Attached is a stand-alone HTML file to reproduce the issue
EDIT:
On the following jsffiddle, the listview only displays when not binding any data to the view:
http://jsfiddle.net/elgato/CMCzC/7/
It does not matter binding an object or null.
<script type="text/x-kendo-template" id="tmpl_jailcard_comment"> begin list <ul data-role="listview" data-style="inset" data-type="group" > <li id="Item-A">AAA</li> <li id="Item-B">BBB</li> <li id="Item-C">CCC</li> </ul> end list</script>Produces no LI elements, only the enclosing UL element
When the UL attribute "data-role" is removed, the list displays the three items.
This might have to do with data binding, even though the above UL list does not work with dynamic data.
- bind data when calling the template from the view that uses the template:
<span data-bind="source:this" data-template="tmpl_jailcard_comment"></span>kendo.bind("#scr_jailcard_comment", viewModel);Attached is a stand-alone HTML file to reproduce the issue
EDIT:
On the following jsffiddle, the listview only displays when not binding any data to the view:
http://jsfiddle.net/elgato/CMCzC/7/
It does not matter binding an object or null.