Posted 14 September 2017, 12:05 pm EST
Hello,
I followed this tutorial http://wijmo.com/blog/creating-column-groups-in-flexgrid/ to create the column groups I need. Everything works great, but now I also need to define a cell template in which a need to place a drag & drop component and I have trouble doing this because the items source is programatically created (like in the tutorial from the link above), but the cell template is being defined in the HTML. I am using Angular 2. Bellow is an example of what I want to achieve with the cell template - the drag & drop behaviour.
<wj-flex-grid-column [header]=“‘Name’” [binding]=“‘movieName’” [width]=“‘*’” [isReadOnly]=“true”>
<ng-template wjFlexGridCellTemplate [cellType]=“‘Cell’” let-cell=“cell”>
<div [DRAG_AND_DROP]=“dragAndDropProp”>
<div>{{cell.item.movieName}}</div>
</div>
</ng-template>
</wj-flex-grid-column>
My question is: how can I define the template programatically or how can I mix the column grouping with the HTML column templates to obtain the desired behaviour?
Thanks!