p-tableCheckbox don't working check when binding form data (contract.ds_dmrr) have column tt get value = true

UI Components for Angular
Post Reply
vthanhnv@gmail.com
Posts: 1
Joined: 01 Jun 2023, 18:41

01 Jun 2023, 18:46

Hi Support,
In Subject I description about issuse, plz support for me.

thanks.

Here this code:

<p-table [value]="contract.ds_dmrr" styleClass="p-datatable-gridlines p-datatable-sm"
[resizableColumns]="true" [tableStyle]="{'min-width': '30rem'}" [rows]="10">
<ng-template pTemplate="header">
<tr>
<th style="width: 4rem">No</th>
<th style="width: 4rem">
<p-tableHeaderCheckbox></p-tableHeaderCheckbox>
</th>
<th style="width: 16rem">Mã</th>
<th>Tên</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-item let-rowIndex="rowIndex">
<tr [pSelectableRow]="item">
<td>{{rowIndex + 1}}</td>
<td>
<p-tableCheckbox [value]="item"></p-tableCheckbox>
</td>
<td>{{item.ma}}</td>
<td>{{item.ten}}</td>
</tr>
</ng-template>
</p-table>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests