Edit this page

append

Appends new items generated by rendering the given data items with the listview template to the bottom of the listview.

Parameters

dataItems Array

Example

<div data-role="view">
    <a data-role="button" data-click="addItem">Add item</a>
    <ul id="listview" data-role="listview" data-template="foo">
    </ul>
</div>

<script type="text/x-kendo-template" id="foo">
Item #: idx #
</script>

<script>
var i = 0;
function addItem() {
  i ++;
  $("#listview").data("kendoMobileListView").append([ { idx: i } ]);
}

new kendo.mobile.Application();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy