Custom sort in table not working. #15550
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Custom sort is not working expected. (sortFunction)="customSort($event)" is not getting triggered.Using the vesrion "primeng": "^17.16.0".
<p-table
#dt
[columns]="cols"
[value]="values"
(sortFunction)="customSort($event)" [customSort]="true"
[tableStyle]="{ 'min-width': '50rem' }"
[paginator]="true"
[rows]="10"
[scrollable]="true"
currentPageReportTemplate="Showing {first} to {last} of {totalRecords} entries"
(onPage)="onPaginate($event)"
[showCurrentPageReport]="true"
[totalRecords]="totalRecords"
[lazy]="true"
[rowsPerPageOptions]="[5, 10, 20]"
[selectionMode]="'multiple'"
[(selection)]="selectedRows"
In ts
import { ConfirmationService, SortEvent } from 'primeng/api';
customSort(event : SortEvent){
console.log(event);
}
tried as per the latest documentation.But customSort Method is not triggered while applying the sort.
Environment
local environment
Reproducer
No response
Angular version
17.00
PrimeNG version
17.16.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: