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
<div id="grid"></div> | |
<script> | |
$("#grid").kendoGrid({ | |
}); | |
</script> |
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
app.openDb = function() { | |
var dbName = "todo.db"; | |
app.db = window.sqlitePlugin.openDatabase({name: dbName, createFromLocation: 1}); | |
} |
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
var app = {}; | |
app.db = null; | |
app.openDb = function() { | |
var dbName = "todo.db"; | |
app.db = window.sqlitePlugin.openDatabase(dbName); | |
} | |
app.createTable = function() { | |
var db = app.db; |
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
$("#configurator").kendoPivotConfigurator({ | |
dataSource: pivotgrid.dataSource, | |
height: 330 | |
}); |
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
<!-- HTML Div to hold Pivot Grid Configurator --> | |
<div id="configurator"></div> |
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
$(document).ready(function () { | |
var pivotgrid = $("#pivotgrid").kendoPivotGrid({ | |
columnWidth: 120, | |
height: 275, | |
dataSource: { | |
data: leaveData, | |
schema: { | |
model: { | |
fields: { | |
Employee: { type: "string" }, |
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
var leaveData = [ | |
{ | |
Employee:"Jane", | |
Start: new Date(2014,3,17), | |
End: new Date(2014,3,17), | |
Type:"Sick Leave", | |
Days:1 | |
}, | |
{ | |
Employee:"Jane", |
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" | |
}, |
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 () { | |
$("#pivotgrid").kendoPivotGrid({ | |
height: 200, | |
dataSource: { | |
type: "xmla", | |
columns: [{ name: "[Date].[Calendar]" }], | |
rows: [{ name: "[Product].[Category]" }], | |
measures: ["[Measures].[Internet Sales Amount]"], | |
transport: { |
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
<!-- Define the HTML div that will hold the PivotGrid --> | |
<div id="pivotgrid"> | |
</div> |