Paginator rowPerPageOptions not working

UI Components for React
Post Reply
bluu926
Posts: 4
Joined: 20 Jun 2018, 21:23

20 Jun 2018, 21:49

Using the latest primereact: 1.6.2

http://primefaces.org/primereact/#/datatable/paginator

The dropdown for rowPerPageOptions doesn't update the Datatable with the new value.

rvw
Posts: 12
Joined: 01 Jun 2018, 10:48

22 Jun 2018, 11:46

I reported the bug 2 days ago on github (https://github.com/primefaces/primereact/issues/449) but still no reaction.

travelbug42
Posts: 7
Joined: 23 Jun 2018, 00:41

23 Jun 2018, 00:53

I came across the same issue today. My workaround was to add the onPage props and assign it to a handler function.

Code: Select all

onPageChange(event) {
      this.setState({ rows: event.rows});
};

<DataTable
        paginator={true}
        rows={this.state.rows}
        rowsPerPageOptions={[5, 10, 20]}
        onPage={event => this.onPageChange(event)}>
      {columns}
</Datatable>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

26 Jun 2018, 14:37

Fixed for next version.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests