Edit this page

remove

Removes the listview items which are rendered with the passed data items.

Parameters

dataItems Array

Example

<div data-role="view">
    <a data-role="button" data-click="removeItem">Remove item</a>
    <ul id="listview" data-role="listview" data-template="foo" data-source="fooDS">
    </ul>
</div>

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

<script>
var fooDS = new kendo.data.DataSource({ data: [ {name: "Foo"}, {name: "Bar"} ] });

function removeItem() {
  $("#listview").data("kendoMobileListView").remove([ fooDS.data()[1] ]);
}


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