template Function
Specifies ListView item template.
The outermost HTML element in the template must be enclosed in another container such as a
div
orspan
element.
Example
<script type="text/kendo-x-tmpl" id="template">
<div>
Item template for #:name#
</div>
</script>
<div id ="listView"></div>
<script>
$("#listView").kendoListView({
dataSource: {
data: [
{ name: "Jane Doe" },
{ name: "John Doe" }
]
},
template: kendo.template($("#template").html())
});
</script>