Posts

Showing posts with the label primeng

Selection not proper after rowspan on PrimeNG Table

Selection not proper after rowspan on PrimeNG Table I am facing a strange issue. I am not able to select the merged row using rowspan on table of PrimeNG. Can anyone help me to quick fix this ? See Stackblitz By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

PrimeNG: custom sort issue for dates

PrimeNG: <p-table> custom sort issue for dates I am using primeNg <p-table> to implement custom sort for "Quarterly Results" field. <p-table> "Quarterly Results" The date in the "Quarterly Results" field is as below: "Quarterly Results" Q3-2017 2018 2017 Q1-2016 2000 Q3-2018 Q2-2012 Source : https://primefaces.org/primeng/#/table/sort To sort the data I have done below code: HTML: <p-table [value]="documents" (sortFunction)="customSort($event)" [customSort]="true"> <ng-template pTemplate="header"> <tr> <th [pSortableColumn]="quarter"> Quarterly Results <p-sortIcon [field]="quarter"></p-sortIcon> </th> </tr> </ng-template> <ng-template pTemplate="body" let-doc> <tr> ...