|
<ejs-grid [dataSource]='clientData' [allowSorting]='true' [sortSettings]='initialSort'>
<e-columns>
<e-column textAlign="left" width='60' [showInColumnChooser]='false'>
<ng-template #template let-clientData>
<img src="assets/images/delete-icon.svg" class="edit-delete-img" id="img1" (click)="onClickDelete(clientData)">
<img src="assets/images/pencil-icon.svg" class="edit-delete-img" id="img1" (click)="onClickEdit(clientData)">
</ng-template>
</e-column>
. . .
</e-columns>
</ejs-grid> |
|
<ejs-grid #grid [dataSource]='clientdata'>
<e-columns>
<e-column headerText='Employee Image' width='150' textAlign='Center'>
<ng-template #template let-data>
<div class="image">
<img src="https://ej2.syncfusion.com/angular/demos/src/grid/images/{{data.EmployeeID}}.png" (click)="onClickDelete(data.EmployeeID)" alt="{{data.EmployeeID}}" />
</div>
</ng-template>
</e-column>
</e-columns>
</ejs-grid> |
|
<e-column headerText='Employee Image' width='150' textAlign='Center'>
<ng-template #template let-clientdata>
<div class="image">
<img src="https://ej2.syncfusion.com/angular/demos/src/grid/images/{{clientdata}}.png" (click)="onClickDelete(clientdata)" />
</div>
</ng-template>
</e-column>
|
Hi Brijesh,
Thanks for using Syncfusion products.
This issue reproduced when we are using different versions for different modules or duplicate modules installed. Please kindly check whether you are using the same version for all @syncfusion modules and we suggest you remove/delete the @Syncfusion folder in node modules as well as package.lock.json file. Now, you can again install the Syncfusion package module from the following command to resolve this issue,To install Grid packages using below command.npm install @syncfusion/ej2-ng-grids --save
Help documentation: https://ej2.syncfusion.com/16.1.37/angular/documentation/grid/getting-started.html
Please let us know if you have any further assistance on this.
Regards,Venkatesh Ayothiraman.