remove

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

Parameters

dataItems Array
    <div data-role="view">
        Remove item
        <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>
In this article