Is it possible to get only a search without filterable columns in the DataTable

UI Components for React
Post Reply
X1X11X
Posts: 14
Joined: 05 Mar 2022, 21:37

18 Sep 2022, 13:20

Hi,
Using PrimeReact, is there any way I can have only one global search in my DataTable?
I find the documentation for this a bit confusing on the official site, as there all the filters are somehow linked together and the whole thing seems a bit unclear.

Thanks in advance!

Melloware
Posts: 3299
Joined: 22 Apr 2013, 15:48

18 Sep 2022, 15:09

So don't want any column filters but you want a global filter above the table? Is my understanding correct?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.3 / PF Extensions 11.0.3
PrimeReact 8.0.0

X1X11X
Posts: 14
Joined: 05 Mar 2022, 21:37

18 Sep 2022, 20:58

Exactly! A search field but no special filter menus for the individual columns.

Melloware
Posts: 3299
Joined: 22 Apr 2013, 15:48

18 Sep 2022, 23:25

Have you tried that? I would expect it to work if you follow the global filter example.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.3 / PF Extensions 11.0.3
PrimeReact 8.0.0

X1X11X
Posts: 14
Joined: 05 Mar 2022, 21:37

20 Sep 2022, 23:25

I have looked at the documentation again and now everything works, I did not know that you can define the filterable columns.

Melloware
Posts: 3299
Joined: 22 Apr 2013, 15:48

20 Sep 2022, 23:52

Nice!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.3 / PF Extensions 11.0.3
PrimeReact 8.0.0

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests