Posted 14 August 2018, 10:48 pm EST
Subscriber.js:247 Uncaught TypeError: Cannot read property ‘_isCopying’ of undefined
at e._gridItemsSourceChanged (wijmo.grid.sheet.js:13)
at t.raise (wijmo.js:13)
at t.onItemsSourceChanged (wijmo.grid.js:13)
at t.set [as itemsSource] (wijmo.grid.js:13)
at e.set [as itemsSource] (wijmo.grid.sheet.js:13)
at ExampleSheetTemplateComponent.ngOnInit (example-sheet-template.component.ts:77)
at checkAndUpdateDirectiveInline (core.js:12411)
at checkAndUpdateNodeInline (core.js:13935)
at checkAndUpdateNode (core.js:13878)
at debugCheckAndUpdateNode (core.js:14771)
const flexSheet = new wjSheet.FlexSheet('#flexSheet');
flexSheet.allowSorting = false;
flexSheet.showFilterIcons = false;
flexSheet.filter.showFilterIcons = false;
const sheet1 = new wjSheet.Sheet();
const sheet2 = new wjSheet.Sheet();
const sheet1Source = {};
const sheet2Source = {};
sheet1.name = this.translate.instant('materials');
sheet2.name = this.translate.instant('barcodes');
sheet1.columnCount = this.templateContext.materialArrayKey.length;
sheet2.columnCount = this.templateContext.barcodeArrayKey.length;
sheet1.rowCount = 13;
sheet2.rowCount = 13;
for (let i = 0; i < sheet1.grid.columns.length; i++) {
sheet1.grid.columns[i].header = this.translate.instant(this.templateContext.materialArrayKey[i]);
sheet1.grid.columns[i].binding = this.templateContext.materialArrayKey[i];
sheet1Source[this.templateContext.materialArrayKey[i]] = this.exampleMaterial[i];
}
for (let i = 0; i < sheet2.grid.columns.length; i++) {
sheet2.grid.columns[i].width = "*";
sheet2.grid.columns[i].header = this.translate.instant(this.templateContext.barcodeArrayKey[i]);
sheet2.grid.columns[i].binding = this.templateContext.barcodeArrayKey[i];
sheet2Source[this.templateContext.barcodeArrayKey[i]] = this.exampleBarcode[i];
}
let items1 = new wjCore.CollectionView([sheet1Source]);
let items2 = new wjCore.CollectionView([sheet2Source]);
sheet1.itemsSource = items1;
sheet2.itemsSource = items2;
flexSheet.sheets.push(sheet1);
flexSheet.sheets.push(sheet2);
flexSheet.deferResizing = true;