Hi. I want to show a basic grid and I could bring json data but I can't show my data on the page.
My sample data set is here.
{
"elapsedTime" : 0,
"status" : "OK",
"errors" : [ ],
"message" : "",
"timestamp" : "2021-11-24 09:50:29",
"bodyType" : "ARRAY",
"body" : [ {
"id" : 88,
"bloodSugar" : "86"
}, {
"id" : 89,
"bloodSugar" : "86"
} ]
}
My JS code is here.
$(document).ready(function(){
$("#grid").kendoGrid({
dataSource: {
transport: {
read: {
url: "my json call url",
}
},
schema: {
model: {
fields: {
id: {type: "string" },
bloodSugar: {type: "string"}
}
}
},
pageSize: 0,
serverPaging: true,
selectable: true,
serverSorting: true
},
height: 550,
sortable: true,
filterable: true,
pageable: true,
columns: [
{field: "id", title: "id"},
{field: "bloodSugar", title: "bloodSugar"}
]
});
});
I could see the json data at my chrome network console but I can't see the data at html view.
I want to know what is the problem...
please help me. Thank you.