DataTable Count of filtered elements

UI Components for React
Post Reply
raik
Posts: 4
Joined: 25 Jan 2017, 14:44

12 Sep 2018, 15:57

Hello there!

I'm struggling with the datatable to get the amount of filtered elements.

I'm generating the columns dynamically from the items i get through an API and displaying them as :

Code: Select all

<DataTable value={this.state.data} footer = {footer} header={header} responsive={true} paginator={true} rows={20} rowsPerPageOptions={[5, 10, 20, 50, 100]} >
	  {columns}
</DataTable>

I just want to show in the footer how many rows are available after filtering but can't find any way to do say.

Any ideas?
Thanks for your help guys!

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

01 Oct 2018, 09:46

This isn't possible now but we are discussing enhancement.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests