Posted 11 January 2019, 1:47 am EST - Updated 3 October 2022, 8:14 pm EST

How to select multiple rows by clicking on check box in angular 2 and above.
Forums Home / Wijmo / General Discussion
Posted by: siddushar on 11 January 2019, 1:47 am EST
Posted 11 January 2019, 1:47 am EST - Updated 3 October 2022, 8:14 pm EST

How to select multiple rows by clicking on check box in angular 2 and above.
Posted 11 January 2019, 2:37 am EST
Hi,
You may set isSelected property of the row to select a row.
In angular2+ applications, you may use wjFlexgridCellTemplate to display checkboxes in row headers and bind it to the isSelected property of the row.
Please refer to the following code snippet and sample:
<ng-template wjFlexGridCellTemplate [cellType]="'RowHeader'" let-row="row">
<input type="checkbox" [(ngModel)]="row.isSelected"/>
</ng-template>
https://stackblitz.com/edit/angular-tpuvn2?file=src%2Fapp%2Fapp.component.html
~Sharad