The column headers are displaying but no data from the JSON file I used in my source.
<
div
id
=
"example"
>
<
div
id
=
"grid"
></
div
>
<
script
>
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: {
type: "json",
serverPaging: true,
serverSorting: true,
pageSize: 100,
transport: {
}
},
height: 543,
scrollable: {
virtual: true
},
sortable: true,
columns: [
{ field: "FirstName", title: "First Name", width: 100 },
{ field: "LastName", title: "Last Name", width: 100},
{ field: "Email", title: "Email", width: 50 },
{ field: "Desk", title: "Desk", width: 50 },
{ field: "Mobile", title: "Mobile", width: 50 },
{ field: "Location", title: "Location", width: 110 }
]
});
});
</
script
>
<
style
>
/*horizontal Grid scrollbar should appear if the browser window is shrinked too much*/
#grid table
{
min-width: 1190px;
}
</
style
>
</
div
>
Maybe the JSON fine isn't properly formatted?