Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149007 | Nov 12,2019 02:03 AM UTC | Nov 13,2019 01:05 PM UTC | Angular - EJ 2 | 4 |
![]() |
Tags: Grid |
<div class="control-section" style="height: 600px">
<ejs-grid #grid [dataSource]='griddata'>
<e-columns>
<e-column field='id' headerText='Order ID' width='120' isPrimaryKey='true' textAlign='Right'></e-column>
<e-column field='countryId' headerText='Country' foreignKeyField='id' foreignKeyValue='countryName'
[dataSource]='countries'>
<ng-template #template let-data>
<div class="imagedropdown">
// foreignkey data
<span>"{{data.foreignKeyData.countryIconUrl}}"</span><br>
// normal Data
<span class="bob"> {{data.name}}</span>
</div>
</ng-template>
</e-column>
</e-columns>
</ejs-grid>
</div>
|
style="text-align: right" class='e-rowcell'> formControlName="countryId" [dataSource]='countryData' [fields]='fields' popupHeight='300px' floatLabelType='Never' style="text-align: right"> //problem begins here class="imagedropdown"> class="bob"> {{data.countryName}} class="imageselected"> class="bob"> {{data.countryName}} |
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
. ..
}) |
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.