How I can add child grid from different table with different columns after the last leaf of the tree grid?

Hi,

How I can add child grid from different table with different columns after the last leaf of the tree grid?

Thank you
Capture1.jpg

1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team May 17, 2022 02:12 PM UTC

Hi Ahmed


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 Tree like structure. So It is not feasible to achieve with different column names(for parent-child records) in TreeGrid.


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 and Demo link related to Grid:-

https://ej2.syncfusion.com/aspnetcore/Grid/MasterDetailsExport#/fluent

https://ej2.syncfusion.com/javascript/documentation/grid/hierarchy-grid/


If you have different columnNames for parent and Child records you can use Grid component to achieve your requirement. Based on your confirmation we will guide you in right way and provide solution for rest of the queries along with this in that component.


Regards,
Farveen sulthana T


Loader.
Up arrow icon