How to set DataTable page programmatically?

UI Components for Angular
Post Reply
sliekens
Posts: 8
Joined: 11 Apr 2017, 09:55

19 Jul 2017, 16:56

In PrimeNG 4.1.0, how can I set the current page in code? In previous versions I used to call paginate:

Code: Select all

DataTable.paginate({ first: number, rows: number });
This API seems to have been removed?

sliekens
Posts: 8
Joined: 11 Apr 2017, 09:55

24 Jul 2017, 14:09

Anyone?

debshupe
Posts: 1
Joined: 03 Nov 2016, 00:39

07 Aug 2017, 22:13

+1 I am also searching for access to the paginator from outside so that i can set the page programmatically

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Aug 2017, 08:34

Please visit paginator section at;

https://www.primefaces.org/primeng/#/datatable

Joka527
Posts: 1
Joined: 15 Jun 2017, 16:51

10 Aug 2017, 00:13

The link w the paginator example doesn't have the answer included, I'm guessing we're talking about [(first)]="first" here.

Are there any plans to implement the same thing for other Data views such as DataGrid and DataList?

Thank you,

JK

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: Mordets and 1 guest