clearSelection
Clears ListView selected items and triggers the change event.
Example
<button class="k-button" id="clearBtn">Clear Selection</button>
<div id="listView"></div>
<script type="text/x-kendo-tmpl" id="template">
<div class="product-view k-widget">
<dl>
<dt>Product Name</dt>
<dd>#:ProductName#</dd>
</dl>
</div>
</script>
<script>
$("#clearBtn").click(function(){
$("#listView").data("kendoListView").clearSelection();
});
var crudServiceBaseUrl = "https://demos.telerik.com/kendo-ui/service",
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl + "/Products",
dataType: "jsonp"
}
},
pageSize: 10
});
var listView = $("#listView").kendoListView({
dataSource: dataSource,
selectable: "multiple",
template: kendo.template($("#template").html())
}).data("kendoListView");
</script>