Hello,
I have some problem about binding data. I've tried to solve this problems for 48 hours.
1.code review.
<
div
id
=
"example"
>
<
div
id
=
"grid"
></
div
>
<
script
>
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: {
dataType: "jsonp"
}
},
schema: {
data: 'nodes',
model: {
fields: {
uuid: { type: "number" },
subject: { type: "string" },
filepath: { type: "string" },
description: { type: "string" },
count: { type: "number" }
}
}
},
},
height: 550,
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "uuid",
filterable: false
},
"subject",
{
field: "filepath",
title: "File Path"
}, {
field: "description",
title: "Description"
}, {
field: "count",
title: "Count"
}
]
});
});
</
script
>
</
div
>
But, I can see always the field name without the data.
The chrome browser can get the json data from rest server(http://learnsteam.kr:5000/nodes). but It cannot display the items. (I guess there are some binding errors.)
2. Checking the data with browser and postman
You can see the browser screen, postman's query result and postman's header options with attached files.
Help me to solve this problems.
Thanks.