Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144269 | Apr 27,2019 07:29 PM UTC | Apr 30,2019 11:39 AM UTC | Angular - EJ 2 | 1 |
![]() |
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'></e-column>
<e-column field='Freight' headerText='Freight' width='120' format='C2' textAlign='Right'></e-column>
<e-column headerText="Photo" width="90">
<ng-template #template let-data>
<button (click)="clicked(data.OrderID)">{{data.OrderID}}</button>
// use click instead of onclick
<input type="button" (click)="clicked(data.OrderID)" value={{data.OrderID}} />
</ng-template>
</e-column>
</e-columns>
</ejs-grid>
</div>
|
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.