-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable/TreeTable: GlobalFilter not working with filterable="false" #7193
Comments
interesting. So if it is a global search you want it searching all columns but right now we filter only by active or filterable columns assuming you don't want the others checked. |
@melloware yes, you can downgrade to PF 8 to see the behaviour I need. Or maybe there is a way to make the column |
Yep you can hide the filters with this CSS. body .ui-datatable .ui-column-customfilter,
body .ui-datatable .ui-column-filter {
display: none;
} |
Thank you, it is working. It's possible to know if it will be fixed, or should I apply this workaround? |
For now I would apply the workaround because I am not sure if the new behavior is actually the correct one. if I mark a column filterable="false" i would expect it to not be involved in filters. Becuase then how else will user exclude columns from the global filter? Marking as workaround and for discussion. |
User can exclude column from global and column filter by removing the |
because of this example: https://www.primefaces.org/showcase/ui/data/datatable/field.xhtml |
The way in PF 10 adds more tags in all columns for implement the global filter. I'm think add a parameter "hideFilter" in column will be helpfull. |
yep, we need a param for that. maybe with name:
Maybe others |
How about instead of |
Describe the defect
Global filter works only on p:column that has atribute
filtarable="true"
, but it should work on every column that hasfilterBy=""
atribute.I have a datatable where I need only the global filter, not the column filters. To disable column filter I use
<p:column filterable="false"/>
, but this breaks the GlobalFilter in PF10, in PF8 it works as expected.I haven't tested yet, but this may affect treetable too.
Reproducer
Clone repository https://github.com/stefan-dan/primefaces-test
Environment:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected behaviour: Global filter should work on all p:columns that has atribute filterBy="", despite of filterable="" value.
Example XHTML
The text was updated successfully, but these errors were encountered: