igniteui-angular
igniteui-angular copied to clipboard
Add [igxColumnTemplate] to <igx-hierarchical-grid> and <igx-row-island>
Is your feature request related to a problem? Please describe.
This is related to question 9064, If I can't add recursive templates, it would be nice to at least reuse the same columns at each row island level.
Describe the solution you'd like
I would like to implement something similar to this:
<ng-template #columnsTemplate1>
<igx-column header="Column 1" field="columnField1"></igx-column>
<igx-column header="Column 2" field="columnField2"></igx-column>
<igx-column header="Column 3" field="columnField3"></igx-column>
<igx-column header="Column 4" field="columnField4"></igx-column>
</ng-template>
<ng-template #columnsTemplate2>
<igx-column header="Column 5" field="columnField4"></igx-column>
<igx-column header="Column 6" field="columnField5"></igx-column>
<igx-column header="Column 7" field="columnField7"></igx-column>
<igx-column header="Column 8" field="columnField8"></igx-column>
</ng-template>
<igx-hierarchical-grid [igxColumnTemplate]="columnsTemplate" igxPreventDocumentScroll class="hierarchicalGrid" primaryKey="levelId" [data]="localdata">
<igx-row-island key="childs" [autoGenerate]="false" [igxColumnTemplate]="columnsTemplate1">
<igx-row-island key="childs" [autoGenerate]="false" [igxColumnTemplate]="columnsTemplate1">
<igx-row-island key="childs" [autoGenerate]="false" [igxColumnTemplate]="columnsTemplate2">
</igx-row-island>
</igx-row-island>
</igx-row-island>
</igx-hierarchical-grid>
Describe alternatives you've considered
Currently I'm being forced to define every level even though they are all the same.
Additional context
Any alternative to encapsulate columns definitions would be ok.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.