Skip to content

Commit 64e955a

Browse files
Copilotkdinev
andcommitted
Clarify TreeGrid indentation supports both data binding modes
Added comment to clarify that TreeGrid PDF export indentation works for both: - Hierarchical data binding - Flat self-referencing data with foreignKey The implementation already handles both cases correctly since the base exporter normalizes both modes into TreeGridRecord with proper level property. Co-authored-by: kdinev <[email protected]>
1 parent a88e896 commit 64e955a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/igniteui-angular/src/lib/services/pdf/pdf-exporter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ export class IgxPdfExporterService extends IgxBaseExporter {
116116
}
117117

118118
// Calculate indentation for hierarchical records
119+
// TreeGrid supports both hierarchical data and flat self-referencing data (with foreignKey)
120+
// In both cases, the base exporter sets the level property on TreeGridRecord
119121
const isTreeGrid = record.type === 'TreeGridRecord';
120122
const isHierarchicalGrid = record.type === 'HierarchicalGridRecord';
121123
const indentLevel = (isTreeGrid || isHierarchicalGrid) ? (record.level || 0) : 0;

0 commit comments

Comments
 (0)