Any Ideas why the following code should produce an error?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--In the header of your page, paste the following for Kendo styles-->
<link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="styles/kendo.kendo.min.css" rel="stylesheet" type="text/css" />
<!--Then paste the following for Kendo scripts-->
<script src="scripts/jquery.min.js" type="text/javascript"></script>
<script src="scripts/kendo.all.min.js" type="text/javascript"></script>
<title>Binding to remote data</title>
</head>
<body>
<div id="example" class="k-content">
<div id="grid"></div>
<script type="text/javascript">
var dateRegExp = /^\/Date\((.*?)\)\/$/;
function toDate(value) {
var date = dateRegExp.exec(value);
return new Date(parseInt(date[1]));
}
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "http://localhost:64526/WcfLeaguesDataService.svc/tbl_Umpires"
},
schema: {
model: {
fields: {
Id: { type: "number" },
Firstname: { type: "string" },
LastName: { type: "string" },
EmailAdd: { type: "string" }
}
}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
height: 250,
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "Id",
filterable: false
},
"Firstname",
"LastName",
"EmailAdd"
]
});
});
</script>
</div>
</body>
</html>
The Error is:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-GB">The query parameter '$format' begins with a system-reserved '$' character
but is not recognized.</message>
</error>
As it is just an edit of the Example code. (The WCF string pasted into the browser, seems to work fine)