Skip to content

Commit 900d164

Browse files
authored
Merge branch 'master' into hanastasov/fix-createRow-bug
2 parents afdb8c5 + 55476e9 commit 900d164

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/igniteui-angular/src/lib/services/exporter-common/base-export-service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,15 @@ export abstract class IgxBaseExporter {
268268
if (this._ownersMap.size === 0) {
269269
const recordsData = records.map(r => r.data);
270270
const keys = ExportUtilities.getKeysFromData(recordsData);
271-
const columns = keys.map((k) => ({ header: k, field: k, skip: false }));
271+
const columns = keys.map((k) =>
272+
({ header: k, field: k, skip: false, headerType: HeaderType.ColumnHeader, level: 0, columnSpan: 1 }));
272273
const columnWidths = new Array<number>(keys.length).fill(DEFAULT_COLUMN_WIDTH);
273274

274275
const mapRecord: IColumnList = {
275276
columns,
276277
columnWidths,
277-
indexOfLastPinnedColumn: -1
278+
indexOfLastPinnedColumn: -1,
279+
maxLevel: 0
278280
};
279281

280282
this._ownersMap.set(DEFAULT_OWNER, mapRecord);

0 commit comments

Comments
 (0)