Hi,
I am trying to implement a Treegrid component where in I have to display column content as a template which I can customize by adding icons and other button inside each column item. Please find my implementation as below
<ejs-treegrid [dataSource]='data' #treegrid [treeColumnIndex]='0'
parentIdMapping='PID' idMapping='ID' height=265
[allowPaging]="true" [pageSettings]='pageSettings' >
<e-column headerText='Name' width='60' [showCheckbox]='true'>
<ng-template #template let-data="">
<div class="nodetext">
<i class="e-icon e-add" id="icontooltip"
title="ID"></i>
<span class="treeName" id="nodetooltip"
title="name">{{data.Name}}</span>
<div class="nodeicon">
<span class="e-icons e-add"></span>
<span class="e-icons e-menu"></span>
</div>
</div>
</ng-template>
</e-column>
<e-column field='ID' headerText='Node ID' width='20'></e-column>
<e-column field='Description' width='60'></e-column>
</e-columns>
</ejs-treegrid>
Need clarification on following points:
1. The highlighted ng-template written is displayed before expandable icon in each row, and also the checkbox is displayed after that, but I need to display checkbox and the expandable icon before the values.
Example: Project need to come after checkbox
the current screenshot:
2. Also the icons which are present after the Name fields (add icon and menu icon) I should have at the end of the column for each rows.
Kindly let me know how to proceed to resolve this issue.
Thanks in Advance.
Regards,
Pooja K