Skip to content

Instantly share code, notes, and snippets.

@jimholmes
Created June 18, 2014 19:44
Show Gist options
  • Save jimholmes/d4e996a8bf7b6d060e60 to your computer and use it in GitHub Desktop.
Save jimholmes/d4e996a8bf7b6d060e60 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Local References</title>
<link href="content/kendo.common.min.css" rel="stylesheet" />
<link href="content/kendo.default.min.css" rel="stylesheet" />
<script src="scripts/jquery.min.js"></script>
<script src="scripts/kendo.web.min.js"></script>
</head>
<body>
<p>text</p>
<div id="grid"></div>
<script>
var tgt = "http://localhost/demosite/api/contact/";
var contactSource = new kendo.data.DataSource({
transport: {
read: {
url: tgt
}
}
});
var tempSource = new kendo.data.DataSource({
data:
[
{
"LName" : "Holmes"
},
{
"LName": "Johnson"
}
]
})
$("#grid").kendoGrid({
datasource: contactSource
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment