Posted 28 April 2021, 10:17 pm EST
I have a flexgrid (parent) where every row can be expanded, containing another nested grid (nested).
Drag and drop reordering works fine in the nested grid by using [allowDragging]=“‘Rows’”. However, the same does not work for the parent grid.
In the parent grid, I have a custom expand/collapse button implementation due to row height issues when trying to use it out of the box:
<wj-flex-grid-column [allowDragging]="'Rows'" [width]="30" align="center" cssClass="detail-icon" [isReadOnly]="true">
<ng-template wjFlexGridCellTemplate let-cell="cell" cellType="Cell">
<span (click)="dp.hideDetail(cell.row)" *ngIf="dp.isDetailVisible(cell.row)"><i class="fa fa-minus"></i></span>
<span (click)="showDetails(dp, cell.row)" *ngIf="!dp.isDetailVisible(cell.row)"><i class="fa fa-plus"></i></span>
</ng-template>
</wj-flex-grid-column>
The row isn’t draggable in the parent. Can you advise how I can best achieve this?