This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to show json data into kendo grid. I had tried a lot but can't figured out the problem.
Thanks
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.common-material.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.material.min.css"
/>
<
script
src
=
"http://cdn.kendostatic.com/2015.2.624/js/jquery.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2015.2.624/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"grid"
>
</
div
>
<
script
>
$(function () {
$("#grid").kendoGrid({
columns: [{
title: "Name",
field: "Name"
},
{
title: "Quantity",
field: "Quantity__c"
},
{
title: "Price",
field: "Price__c"
},
{
title: "Id",
field: "Id"
}],
dataSource: {
transport: {
read: {
type: "GET",
dataType: "jsonp",
crossDomain:true
}
},
schema: {
data: function (data) {
return data;
}
},
pageSize: 5
},
sortable: {
mode: "multiple"
},
pageable: true
});
});
</
script
>
</
body
>
</
html
>