Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello! Could you help me to clarify?
I am trying to connect my backend API with WebApiAdaptor;
The connection works fine, the request gives the data successfully, but the TreeGrid isn't rendered any data from BE side. 

Here my code examples; on view:

<ng-container>

<ejs-treegrid #treegrid [dataSource]='tableData'
height='100vh'
[pageSettings]="{pageSize: 30, pageCount: 1}"
[enableInfiniteScrolling]="true"
(actionBegin)="getNewPage($event)"
[treeColumnIndex]='1'
allowPaging='false'>

<e-columns>
<e-column
field='serialNumber'
headerText='serialNumber'
width='120'
textAlign='Center'>
</e-column>
<e-column
field='description'
headerText='description'
width='50'>
</e-column>
<e-column
field='companyName'
headerText='companyName'
width='50'>
</e-column>
<e-column
field='employeeName'
headerText='employeeName'
width='100'>
</e-column>
</e-columns>
</ejs-treegrid>
</ng-container>

on component:

ngOnInit(): void {
this.tableData = new DataManager({url: `http://localhost:3000/table-data/?&dataId=${this.storageService.getTableDataId()}`, adaptor: new WebApiAdaptor, crossDomain: true })
}

data what my BE sends:

  1. {
    count: number;
    dataId: string:
    rows: object[];
    }

I suppose that I missed some mandatory fields for WebApiAdaptor? Do I have to change response data from BE? Maybe you could notice what I am doing wrong?