3

How to listen to the scroll event of primeng data table which has fixed header. If no event available, how to add a custom event. Following is the data table properties:

<p-dataTable #dt [value]="manualProcessGridData" 
                                    [(selection)]="selectedRows" 
                                    [(rows)]="rowsCountPerPage" 
                                    [paginator]="true"
                                    [pageLinks]="3" 
                                    [rowsPerPageOptions]="[5,10,20]" 
                                    [lazy]="true" 
                                    (onLazyLoad)="loadData($event,false,'')" 
                                    [(totalRecords)]="totalRecords"
                                    sortField="totalProcessingTime" 
                                    sortOrder="1" scrollable="true" 
                                    [scrollHeight]="viewHeight">
Sahil Agarwal
  • 799
  • 4
  • 12
  • 19
  • try like this https://stackoverflow.com/questions/46292509/unable-to-use-primeng-p-datatable-virtual-scroll-lazy-load/46294970#46294970 – Chandru Nov 15 '17 at 11:09

0 Answers0