igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Add [igxColumnTemplate] to <igx-hierarchical-grid> and <igx-row-island>

Open luiscla27 opened this issue 3 years ago • 8 comments

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.

luiscla27 avatar Feb 25 '21 23:02 luiscla27

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar May 15 '21 00:05 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jul 31 '21 00:07 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Oct 02 '21 00:10 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jan 08 '22 00:01 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Mar 12 '22 00:03 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar May 14 '22 00:05 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jul 16 '22 00:07 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Sep 17 '22 00:09 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Nov 19 '22 00:11 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jan 21 '23 00:01 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Mar 26 '23 00:03 github-actions[bot]