Created
June 18, 2014 19:44
-
-
Save jimholmes/d4e996a8bf7b6d060e60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!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