Edit this page

altTemplate Function

Template to be used for rendering the alternate items in the ListView.

Example of alternate item template

 <script type="text/kendo-x-tmpl" id="template">
        Item template for #:name#

 <script type="text/kendo-x-tmpl" id="altTemplate">
        Alternate item template for #:name#

 <div id ="listView"></div>
    dataSource: {
        data: [
            { name: "Jane Doe" },
            { name: "John Doe" }
    template: kendo.template($("#template").html()),
    altTemplate: kendo.template($("#altTemplate").html())
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article