hi ,
html:
<ejs-grid [dataSource]='pagerService | async' [columns]="columns"></ejs-grid>
Ts:
this.columns = [
{ field: 'LogoImage', foreignKeyValue: 'LogoImage', headerText: this.translate.instant("image"), width: 80, allowResizing: false, textAlign: 'Center', allowGrouping: false, allowFiltering: false, template: this.template_image, type: 'image' },
{ field: 'CompanyID', foreignKeyValue: 'CompanyID', headerText: this.translate.instant("code"), width: 160, allowGrouping: false, allowFiltering: false, defualtFiltering: true },
{ field: 'Name1', foreignKeyValue: 'Name1', headerText: this.translate.instant("name1"), width: 200, allowGrouping: false, allowFiltering: false },
{ field: 'Name2', foreignKeyValue: 'Name2', headerText: this.translate.instant("name2"), width: 200, allowGrouping: false, allowFiltering: false },
{ field: 'Name3', foreignKeyValue: 'Name3', headerText: this.translate.instant("name3"), width: 200, allowGrouping: false, allowFiltering: false },
{ field: 'BaseCurrency', foreignKeyValue: 'BaseCurrency', headerText: this.translate.instant("currency"), width: 100, allowGrouping: true, allowFiltering: false },
{ field: 'Reference1', foreignKeyValue: 'Reference1', headerText: this.translate.instant('reference1'), width: 200, allowGrouping: true, allowFiltering: false },
{ field: 'Reference2', foreignKeyValue: 'Reference2', headerText: this.translate.instant('reference2'), width: 200, allowGrouping: true, allowFiltering: false },
];
error:
logger.service.ts:77 TypeError: col.isForeignColumn is not a function
at ej2-grids.es2015.js:14800
at Array.filter (<anonymous>)
at GridComponent.getForeignKeyColumns (ej2-grids.es2015.js:14799)
at Data.filterQuery (ej2-grids.es2015.js:1114)
at Data.generateQuery (ej2-grids.es2015.js:946)
at Render.refreshDataManager (ej2-grids.es2015.js:5243)
at GridComponent.<anonymous> (ej2-grids.es2015.js:5162)
at GridComponent.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:300)
at Render.refresh (ej2-grids.es2015.js:5099)
at GridComponent.refresh (ej2-grids.es2015.js:13526)