<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"> src="{{data.countryIconUrl}}" height="20"> class="bob"> {{data.countryName}} class="imageselected"> src="{{data.countryIconUrl}}" height="20"> class="bob"> {{data.countryName}} |
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
. ..
}) |