Created
June 23, 2015 07:44
-
-
Save lohithgn/68348735b3d32d0d8644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function () { | |
var pivotgrid = $("#pivotgrid").kendoPivotGrid({ | |
columnWidth: 120, | |
height: 570, | |
dataSource: { | |
type: "odata", | |
transport: { | |
read: "http://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"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment