Tree Grid Children with Different Columns

Hello,
I'm trying to setup a Tree Grid where the parent/child have different Column names. Is that possible with the TreeGrid Control?
The Data looks like this:


Thanks, Austin

1 Reply 1 reply marked as answer

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team April 15, 2021 10:32 AM UTC

Hi Austin, 

Thanks for contacting Syncfusion Support. 

Query#:- I'm trying to setup a Tree Grid where the parent/child have different Column names. Is that possible with the TreeGrid Control? 
 
In TreeGrid, by default we need to bind same column Names for both Parent and child Records. Based on the ParentIdmapping/IdMapping  and ChildMapping fields alone we have form the Hierarchical relationship between them to built Treelike structure.  

If you want to maintain Parent and child records(Hierarchical structure) with different Column names we suggest you to use Hierarchical Binding feature of the Grid to achieve this requirement.  Using queryString property we can bind the childGrid records with different fields. 
 
Refer to the documentation Link:- 

Please get back to us if you need any further assistance. 

Regards, 
Farveen sulthana T 



Marked as answer
Loader.
Up arrow icon