Posted 29 October 2018, 1:44 am EST
I do not see that left checkbox column show up on my grid…
<<<<<<<<<<<<<<<<
checkboxes were added using the cell-templates in ‘RowHeader’.
Please refer to the following code snippet:
<ng-template wjFlexGridCellTemplate [cellType]="'RowHeader'" let-row="row">
<input #cb type="checkBox" [checked]="row.isSelected" (change)="row.isSelected = cb.checked"/>
</ng-template>
I tried to set grid.selectionMode to both “row” and to “3”, neither worked.
<<<<<<<<<<<<<
As mentioned previously, you need to set selectionMode property to ‘SelectionMode.ListBox’ to modify the value of grid.selectedRows object.
In your example I do not see where you are setting the SelectionMode to Listbox anywhere…
<<<<<<<<<<<<<<
Actually, the selectionMode was never set to ‘ListBox’ in the sample, the sample was meant to demonstrate the same functionality even without the selectionMode being set to ListBox.
Also, I am using Angular6 Reactive Forms, so I can’t use [(ngModel)]=“row.isSelected”…
<<<<<<<<<<<<<<<
We have updated the sample to not use [(ngModel)]. Please refer to the following updated samples:
https://stackblitz.com/edit/angular-wyp3yb?file=app%2Fapp.component.html
https://stackblitz.com/edit/angular-qscvqy?file=app%2Fapp.component.ts
~Sharad