angular - Sort PrimeNG DataTable by radio-button column -
my primeng datatable in selectionmode='single'
, , therefore shows column radio-buttons in it.
when 1 of radio-buttons clicked, how can move/sort selected row top of table?
the following code doesn't work:
<p-datatable [value]="items" [selection]="selected" [globalfilter]="globalfilter" (onrowselect)="rowselect($event)" (onrowunselect)="rowunselect($event)"> <p-column field="name" header=""></p-column> <p-column selectionmode="single" [sortable]='true'></p-column> </p-datatable>
rather odd functionality, has been required client.
Comments
Post a Comment