0

I created a component GridComponent that contains Kendu UI grid element. GridComponent has some columns stationary and some are meant to vary from context to context. DataSourceComponent should project additional columns to GridComponent.

grid.component.html

<kendo-grid ...>
  -- stationary columns
  <kendo-grid-column ...>
  </kendo-grid-column>
  ...

    --- Dynamic columns:
  <ng-content></ng-content>
</kendo-grid>

data-source.component.html

<grid>
  <kendo-grid-column title="test projected column">
  </kendo-grid-column>
</grid>

However, this does not work, meaning list of columns displayed does not change. Wrapping the list of projected columns in ng-container in data-source.html works neither. Is it possible to do?

ben92
  • 80
  • 8
  • I found a solution here. https://stackoverflow.com/questions/41453063/kendo-component-encapsulation-template-component-use – ben92 Feb 01 '22 at 13:39

0 Answers0