Hi
I have nested object field in Telerik Platform (everlive data) which I want to display in a grid.
I could only manage to display such a nested object value when hardcoding the data in JS as follow:
//HARDODED
var data = [ { "Id": "asdads", "surname": "asdaassadds", "healthRiskAssessment": { "totalAlcoholPerWeek": "test 59" } }];
var dataSource = new kendo.data.DataSource({
data: data
});
$("#kendoGridExportAll").kendoGrid({
dataSource: dataSource,
columns: [ { field: "Id" }, { field: "surname" }, { field: "healthRiskAssessment.totalAlcoholPerWeek" } ]
});
//---------------
But I could not get the "totalAlcoholPerWeek" field to dosplay while using everlive. See telerik data screenshot. Could you please assist?
//EVERLIVE
var dataSource = new kendo.data.DataSource({ type: "everlive", transport: { typeName: "healthRiskAssessment" }});
$("#kendoGridExportAll").kendoGrid({
dataSource: dataSource,
columns: [{ field: "Id" }, { field: "surname" }, { field: "healthRiskAssessment.totalAlcoholPerWeek" } ]
});