I am in need of a config object to display nested data. Check out the demo code for reference
In the code, accessing "customer.something"
is essential. There can be multiple levels of nesting, which the grid handles with field='customer.something'
. How can I achieve the same using my template
?
<e-column field='customer.something' headerText='Other' editType='dropdownedit' [edit]='editParams' width=120>
Below is the HTML file containing the template:
<ejs-grid #Grid [dataSource]='data' allowSorting='true'>
<e-columns>
<ng-template #colTemplate ngFor let-column [ngForOf]="colList">
<e-column [field]='column.field' [headerText]='column.header' textAlign='Right' width=90>
<ng-template #template let-data>
{{data[column.field] | currency:'EUR'}} <-- looking to address this line
</ng-template>
</e-column>
</ng-template>
</e-columns>
</ejs-grid>
<!-- <ejs-grid #Grid [dataSource]='data' allowSorting='true'>
<e-columns>
<e-column field='price' isPrimaryKey='true' headerText='Price' textAlign='Right' width=90></e-column>
<e-column field='customer.something' headerText='Other' editType='dropdownedit' [edit]='editParams' width=120>
</e-column>
</e-columns>
</ejs-grid> -->