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

Is it supported to have different height on each template?

Open ymita opened this issue 8 years ago • 2 comments

Description

Is it supported to have different height on each template? Or is it against the expected usage of IgxForOfDirective?

  • igniteui-angular version: 6.1.6
  • browser: n/a

Steps to reproduce

  1. Run the attached sample
  2. Scroll down and up

Note

igxForItemSize is set to "50px". However, the template item(div) height is overridden by its height style(random value). <ng-template igxFor let-item [igxForOf]="localData" [igxForScrollOrientation]="'vertical'" [igxForContainerSize]='"500px"' [igxForItemSize]='"50px"' let-rowIndex="index"> <div [style.height]="item.height" [style.border]="'1px solid red'">{{rowIndex}} - {{item.name}}</div> </ng-template>

Result

Vertical virtualization works well.

Expected result

I am not sure if vertical virtualization is expected to work well.

Attachments

igniteui-app1.zip

ymita avatar Oct 01 '18 07:10 ymita

@ymita At this time this is not supported. This is also the reason variable row heights is not supported in the grid: https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid_virtualization.html#virtualization-limitations

This feature is a prerequisite for the hierarchical grid implementation so it will be implemented in a future version (probably together with the Hierarchical Grid implementation).

MayaKirova avatar Oct 02 '18 11:10 MayaKirova

@MayaKirova, thank you for the information!

ymita avatar Oct 04 '18 01:10 ymita