mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
93 lines
2.9 KiB
HTML
Executable File
93 lines
2.9 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Remote binding</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 id="configurator" class="hidden-on-narrow"></div>
|
|
<div id="pivotgrid" class="hidden-on-narrow"></div>
|
|
|
|
<div class="responsive-message"></div>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
var pivotgrid = $("#pivotgrid").kendoPivotGrid({
|
|
filterable: true,
|
|
columnWidth: 120,
|
|
height: 570,
|
|
dataSource: {
|
|
type: "odata",
|
|
transport: {
|
|
read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
|
|
},
|
|
schema: {
|
|
cube: {
|
|
dimensions: {
|
|
ContactName: { caption: "All Contacts" },
|
|
CompanyName: { caption: "All Companies" },
|
|
Country: { caption: "All Countries" },
|
|
ContactTitle: { caption: "All Titles" }
|
|
},
|
|
measures: {
|
|
"Contacts Count": { field: "CustomerID", aggregate: "count" }
|
|
}
|
|
}
|
|
},
|
|
columns: [{ name: "Country", expand: true }, { name: "CompanyName" } ],
|
|
rows: [{ name: "ContactTitle", expand: true }],
|
|
measures: ["Contacts Count"]
|
|
}
|
|
}).data("kendoPivotGrid");
|
|
|
|
$("#configurator").kendoPivotConfigurator({
|
|
dataSource: pivotgrid.dataSource,
|
|
filterable: true,
|
|
height: 570
|
|
});
|
|
});
|
|
</script>
|
|
<style>
|
|
#configurator {
|
|
width: 400px;
|
|
min-width: 400px;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
#pivotgrid {
|
|
width: 67%;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.hidden-on-narrow {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|