Hello , i use columns in a column:
"
<e-column [columns]="columns" headerText='Test' textAlign='center'></e-column>
"
and my Columns is:
"
public columns: Object[] = [];
this.columns = [ {
headerText:'Test', textAlign: 'Center',
columns: [{headerText: 'test1', width: 35, textAlign: 'Center', index: 111, visible: false },], },
]
"
when clicked, the visible becomes true value.
but I get an error message even though I don't want to use a foreign key.
This happens when I click the button and want to change the content of the column.
I would really appreciate an answer .
best regards
Mohammed Abbasi
The error message is:
"
ERROR TypeError: col.isForeignColumn is not a function
at ej2-grids.es2015.js:17203:1
at Array.filter (<anonymous>)
at GridComponent.getForeignKeyColumns (ej2-grids.es2015.js:17202:1)
at Render.isNeedForeignAction (ej2-grids.es2015.js:5772:1)
at Render.refreshDataManager (ej2-grids.es2015.js:5731:1)
at GridComponent.<anonymous> (ej2-grids.es2015.js:5657:1)
at push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:331:1)
at Render.refresh (ej2-grids.es2015.js:5628:1)
at Observer.notify (ej2-base.es2015.js:2325:1)
at GridComponent.notify (ej2-base.es2015.js:6785:1)
"