Apply DataTable filter only on apply

UI Components for React
Post Reply
reid
Posts: 5
Joined: 12 Jul 2014, 20:30

07 Oct 2022, 21:24

I've got a lazily loaded DataTable with some filters, but I'm a little confused by the filtering process and how to control it.

I more or less follow the example provided on the Lazy page for the filtering and data loading.

As expected the service that populates the table is not called/requested until the apply button in the filter menu is clicked. However, it appears that the table is re-rendered (at least the body templates of the Columns are called) on every character change in the filter text input. This causes severe performance issues given the processing and amount of data in one of the columns.

Is there anyway to disable the columns from refreshing until the apply button is clicked? I have tried setting filterDelay to a large value, but that seemed to have no effect.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: cagatay.civici and 2 guests