mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-03 01:01:41 +00:00
79 lines
2.8 KiB
HTML
Executable File
79 lines
2.8 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Basic usage</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
|
|
<div id="example">
|
|
<div class="demo-section k-content">
|
|
<h4><label for="customers">Customers</label></h4>
|
|
<input id="customers" style="width: 100%;" />
|
|
<div class="demo-hint">Hint: You can filter by the fields defined in the filterFields option.</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$("#customers").kendoMultiColumnComboBox({
|
|
dataTextField: "ContactName",
|
|
dataValueField: "CustomerID",
|
|
height: 400,
|
|
columns: [
|
|
{
|
|
field: "ContactName", title: "Contact Name", template: "<div class='customer-photo'" +
|
|
"style='background-image: url(../content/web/Customers/#:data.CustomerID#.jpg);'></div>" +
|
|
"<span class='customer-name'>#: ContactName #</span>", width: 200
|
|
},
|
|
{ field: "ContactTitle", title: "Contact Title", width: 200 },
|
|
{ field: "CompanyName", title: "Company Name", width: 200 },
|
|
{ field: "Country", title: "Country", width: 200 }
|
|
],
|
|
footerTemplate: 'Total #: instance.dataSource.total() # items found',
|
|
filter: "contains",
|
|
filterFields: ["ContactName", "ContactTitle", "CompanyName", "Country"],
|
|
dataSource: {
|
|
type: "odata",
|
|
transport: {
|
|
read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.customer-photo {
|
|
display: inline-block;
|
|
box-shadow: inset 0 0 1px #999, inset 0 0 10px rgba(0,0,0,.2);
|
|
margin: 0 10px 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background-size: 100%;
|
|
background-repeat: no-repeat;
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|