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