This is my first time using Kendo UI and I'm trying to set up a simple grid with data fed from a json file.
When the page loads, it doesn't display anything and it does not give me any type of error, am i doing anything wrong?
var Data = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:88/Animation.svc/GetProspect",
dataType: "json"
}
},
});
$("#grid").kendoGrid({
dataSource: Data,
columns: [
{
field: "Date",
title: "Date"
},
{
field: "Name",
title: "Name"
}],
height: 200,
scrollable: true,
pageable: true,
sortable: {
mode: "multiple"
}
});
This is what the json format looks like:
[{"Date":"12-31-2010","Name":"A","LastName":"B"}, {"Date":"12-31-2011","Name":"B","LastName":"C"}]