OnValueChange-Event missing after refreshing values

UI Components for React
Post Reply
Posts: 1
Joined: 28 Oct 2022, 11:32

28 Oct 2022, 11:50


I use the OnValueChange-Event to detect the number of filtered rows and set it in the state of my parent component.

Code: Select all

onValueChange={filteredData => this.setState({filteredRows: filteredData.length})}
That works fine for me, when I change a filter input on a column.

But if i reload my data, which I have used for value

Code: Select all

and the current used filter changed the displayed rows, will my state of filteredRows not updated. The reason is that the event OnValueChange is not fired in that case. How can I get this information after updating the value?

Best regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests