problem with p-tableRadioButton
When selecting a row as seen in the photo (Row Id 12), the entire table is selected.
[img]https://preview.ibb.co/h6UMno/row.jpg[/img]
Codigo:
<p-table [value]="data['entities'].values" [(selection)]="objSelectd" dataKey="vin" [paginator]="true" [rows]="10">
<td *ngFor="let t of th">{{t}}
Actions
<ng-template pTemplate="body" let-rowData >
<tr [pSelectableRow]="rowData[1]">
<td>
<p-tableRadioButton [value]="rowData[0]"></p-tableRadioButton>
</td>
<td *ngFor="let col of rowData">
{{col}}
</td>
<td><a class="btn btn-light">Edit</a></td>
</tr>
</ng-template>
<ng-template pTemplate="summary">
<div style="text-align: left">
Selected row: {{objSelectd}}
</div>
</ng-template>
</p-table>
Whatever [pSelectableRow]="rowData[1]" and [value]="rowData[0]" are is probably always the same value.
This is a question not an issue with the framework from a quick look. Try https://forum.primefaces.org/ if you need further assistance. Otherwise make a stackblitz if you still believe this is an error with the framework and not your code.
Can you explain more on this , what is wrong and what need to be done in this not an issue with the framework thing..
I'm unable to replicate with the latest PrimeNG. If the issue still persists with the new version please create a new issue with our stackblitz template.