primeng icon indicating copy to clipboard operation
primeng copied to clipboard

DataTable - multiple sort not working with either scrollable tables or lazy tables

Open gatapia opened this issue 10 years ago • 6 comments

sortMode="multiple" does not work with scrollable="true".

Also does not work with laze="true" (no multipleSortMetadata in the onRefresh method)

gatapia avatar May 27 '16 00:05 gatapia

confirmed. Same behaviour with Angular2

    <p-dataTable [value]="loginHistModel" sortMode="multiple" [lazy]="true" (onLazyLoad)="loadLoginHist($event)" [totalRecords]="loginHistLen"
                 [rows]="10" [paginator]="true" [responsive]="true" [pageLinks]="6" [rowsPerPageOptions]="[5,10,20]" >

loadLoginHist(event: LazyLoadEvent) {
    console.log(event);
}

/* filters: Object first: 0 multiSortMeta: undefined rows: 10 sortField: "Message" sortOrder: 1 proto: Object */ So sortMode always works as single.

pserafin avatar Jul 28 '16 14:07 pserafin

Exactly the same problem for me. Please fix it, it's a realy necessary feature!

DevWurm avatar Sep 12 '16 11:09 DevWurm

I have the same problem. Pls. solve it!!

katrina-engelbrecht avatar Feb 10 '17 13:02 katrina-engelbrecht

Does it happen with 2.0.2?

cagataycivici avatar Mar 09 '17 08:03 cagataycivici

Please try with the latest PrimeNG version and comment if the issue still persists.

Mrtcndkn avatar May 04 '17 11:05 Mrtcndkn

works now

RebelSyntax avatar May 04 '17 20:05 RebelSyntax