I have datasource for geoJson data collection
var remoteDataSourse = new kendo.data.DataSource({
type: "odata-v4",
transport: {
read: {
url: "/_api/web/lists/getByTitle('Status_Of_Progress')/items?$filter=Enabled eq 1&$top=10000",
}
},
schema: {
data: function (data) {
return data;
},
parse: function(data){
let items = data && data.value ? data.value : [data];
items = items.map(function(item){
if (item.geojson !== null){
let el = JSON.parse(item.geojson);
if(el.type === "FeatureCollection") {
el = el.features[0];
}
el.properties.data = item;
return el;
} else {
}
});
return items;
}
},
pageSize: 10000
});
also i have child lists with additional data
/_api/web/getFolderByServerRelativeUrl('/clng/Status_Of_Progress_Images/ITEMS_CODE')/files?$orderby=TimeLastModified desc
/_api/web/lists/getByTitle('Status_Of_Progress_PIR')/items?$filter=CodeId eq 'ITEMS_ID'&$orderby=Planned asc
/_api/web/lists/getByTitle('Status_Of_Progress_CIW')/items?$filter=CodeId eq 'ITEMS_ID'&$orderby=Planned asc
/_api/web/lists/getByTitle('Status_Of_Progress_Procurement')/items?$filter=CodeId eq 'ITEMS_ID'&$orderby=Planned asc
How i can create Hierarchical Data Source for this?