Datatable: How to filter null values

UI Components for React
Post Reply
ckay2003
Posts: 3
Joined: 15 Jun 2020, 11:34

15 Jun 2020, 11:45

Hello,

I am new to react and primereact and have a first question, that I can't come up with a solution yet.

I have a datatable with a list of customers and one of the columns is a valid_to column with null if the customer is still active or a date, when the work for this customer ended.

I want to filter active / not active customers. but I can't filter for null, because that resets the filter, right?

So how can I filter for null-values then?

regards,
ckay

ckay2003
Posts: 3
Joined: 15 Jun 2020, 11:34

16 Jun 2020, 13:47

If that is not possible... I could for example replace null in a template with "-", but how do i filter the template output?

ckay2003
Posts: 3
Joined: 15 Jun 2020, 11:34

17 Jun 2020, 13:43

This forum is nearly dead it seems. But if anyone googles this question, I got my answer on stack overflow

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

11 Oct 2020, 01:09

Hi,

Sorry for the delayed response! I think this issue has been fixed in the StackOverflow link.

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests