Kendo UI目前最新提供KendoUI for jQuery、KendoUI for Angular、KendoUI Support for React和KendoUI Support for Vue四個控件。Kendo UI for jQuery是創(chuàng)建現代Web應用程序的完整UI庫。
默認情況下,ListView的選擇功能處于禁用狀態(tài)。

入門指南
ListView通過將selectable屬性設置為“ single”或“ multiple”來支持項目選擇功能。
$(“#listView”).kendoListView({
dataSource: dataSource,
selectable: “multiple”,
template: kendo.template($(“#template”).html())
});
高級配置
您還可以檢測用戶何時通過更改事件獲得項目,該事件是通過使用Shift + select組合選擇一個或多個項目時觸發(fā)的。
$(“#listView”).kendoListView({
change: function(e) {
var data = dataSource.view();
var selected = $.map(this.select(), function(item) {
return data[$(item).index()].ProductName;
});
// Index selected or read item informationthrough data.
}
});
下面的示例演示了建議方法的完整實現。
<div id=”listView” style=”max-height:400px;overflow:auto;”></div>
<div class=”k-pager-wrap”>
<div id=”pager”></div>
</div>
<script type=”text/x-kendo-tmpl” id=”template”>
<div class=”product”>
<img src=”https://demos.telerik.com/kendo-ui/content/web/foods/#= ProductID#.jpg” alt=”#: ProductName # image” />
<h3>#:ProductName#</h3>
<p>#:kendo.toString(UnitPrice, “c”)#</p>
</div>
</script>
<script>
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: “https://demos.telerik.com/kendo-ui/service/Products”,
dataType: “jsonp”
}
},
pageSize: 3
});
$(“#pager”).kendoPager({
dataSource: dataSource
});
$(“#listView”).kendoListView({
selectable: true,
dataSource: dataSource,
template: kendo.template($(“#template”).html())
});
</script>
<style>
.alt { background-color: #EEE; }
</style>