The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
VNVignesh Natarajan Syncfusion Team April 24, 2019 04:59 AM UTC
Hi Thao,
Thanks for contacting Syncfusion forums.
Query: “How do I bind childgrid to children objects of each item in the list above ”
From your query and data structure, we suspect that your requirement can be achieved using TreeGrid component. Kindly refer our UG documents and online demo for your reference
Please get back to us if you have further queries.
Regards
Vignesh Natarajan.
TTttArborApril 24, 2019 02:02 PM UTC
maybe the sample data I gave is not so clear. If notice data structure of child objects are different from the parent and that's the reason why i'm using hierarchy grid.
If there's a way tree grid can display different columns for children, can you provide a sample for it?
data = [
{id: 1,
name:'name1',
children :[
id:1,
title:'title1',
count: 10,
level: 'level1',
description: 'sample data ',
modifiedDate: '4/7/2018'
]
}
{id: 2,
name:'name2',
children :[
id: 2,
title:'title2',
count: 11,
level: 'level1',
description: 'sample data ',
modifiedDate: '4/10/2018'
] }
]
HJHariharan J V Syncfusion Team April 26, 2019 12:57 PM UTC
Hi Thao,
Thanks for your update.
We have achieved your requirement in EJ2 Grid by using `detailDataBound` event, please refer the below sample and code snippets.