DataTable reset not resetting paginator

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
tengel92
Posts: 28
Joined: 15 Sep 2016, 20:04

05 Apr 2017, 18:30

I am using the the DataTable reset function and it reset all filters and sorts but does not reset the paginator state. If my filter reduces paginator from 5 pages to 1 page and then reset it only shows page one. However if I select 100 records instead of the default 25 I see 100 records. This is using Ultima 2.1.0, PrimeNG 4RC 1, and Angular 4RC 3.

Code: Select all

<p-dataTable #exportCSV #dt [value]="acknowledgements" [rows]="25" [paginator]="true" [rowsPerPageOptions]="[25,50,100]" [globalFilter]="globalFilter" reorderableColumns="true" expandableRows="true" [responsive]="true" sortField="DataChangePrimaryID" sortOrder="-1" selectionMode="single" (onRowSelect)="onRowSelect($event)" [(selection)]="selectedAcknowledgement" [contextMenu]="cm">
</p-dataTable>

    resetTable(dt) {
        dt.reset();
    }
 

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

06 Apr 2017, 19:44

Hi,

I will replicate the problem and get back to you.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests