You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Datatable in lazy mode. When clicking on the p-sortIcon of a column, not ony the (onSort) event is triggered, but also the (onLazyLoad) event. This leads to multiple http calls where only one is necessary. [lazyLoadOnInit]="false" has no effect on this behaviour.
I figured out, that the onLazyLoad event contains also the sorting information. So I guess, that the onSort event is only necessary for the non-lazy mode. Closing the issue.
Describe the bug
I'm using the Datatable in lazy mode. When clicking on the
p-sortIcon
of a column, not ony the(onSort)
event is triggered, but also the(onLazyLoad)
event. This leads to multiple http calls where only one is necessary.[lazyLoadOnInit]="false"
has no effect on this behaviour.Environment
Angular 15.2.9
PrimeNG 15.4.1
Reproducer
No response
Angular version
17.3.4
PrimeNG version
17.13.0
Build / Runtime
TypeScript
Language
TypeScript
Node version (for AoT issues node --version)
18.18.2
Browser(s)
Chrome 123.0.6312.105
Steps to reproduce the behavior
No response
Expected behavior
onLazyLoad
event shouldn't be triggered together withonSort
when trying to sort a column.The text was updated successfully, but these errors were encountered: