this.data.forEach(i => {
if(i.SubCategory){
i.SubCategory.forEach(k => {
subcategory.push(
{
"Category": k.Category,
"Ipaddress": k.Ipaddress,
"Subnet": k.Subnet,
"Comments": k.Comments
}
)
})
}
})
console.log(subcategory)
this.childGrid = {
dataSource: subcategory,
queryString: 'Category',
allowPaging: false,
//pageSettings: {pageSize: 6, pageCount: 5},
columns: [
{ field: 'Category', headerText: 'Category',},
{ field: 'Ipaddress', headerText: 'Ipaddress',},
{ field: 'Subnet', headerText: 'Subnet', },
{ field: 'Comments', headerText: 'Comments',},
{ field: 'Location', headerText: 'Location', visible: false },
{ field: 'Lab', headerText: 'Lab', width: 150, visible: false },
{ field: 'Labtype', headerText: 'Labtype', width: 150, visible: false }
],
//childGrid: this.secondChildGrid
};