Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148776 | Nov 4,2019 06:55 AM UTC | Nov 4,2019 11:55 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
<div class="control-section">
<ejs-grid [dataSource]='data' height='350'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' width='120' textAlign='Right'></e-column>
<e-column field='CustomerName' headerText='Customer Name' width='150'>
<ng-template #template let-data>
<div>
<a rel='nofollow' href="#">{{ data.CustomerName }}</a> //add your link here instead of #
</div>
</ng-template>
</e-column>
....
....
</e-columns>
</ejs-grid>
</div > |
<e-columns>
<e-column field='OrderID' headerText='Order ID' width='120'></e-column>
<e-column headerText='Customer Name' width='150'>
<ng-template #template let-data>
<div>
<a rel='nofollow' href="#" *ngFor="let custid of data.CustomerID; let i=index">{{custid}}
<span *ngIf="i != data.CustomerID.length-1"> ,</span></a>
</div>
</ng-template>
</e-column>
</e-columns>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.