In the DataList global filter I want to exclude one (or more) of the columns from being searched. Can someone please point me to the instructions on doing that.
Thanks
Excluding column from Global search
Set filter=false. That should set it so that the column isn't included in search. You can find it in the DataTable documentation. You can also change the filter if it contains, starts or ends with values.
Code: Select all
<p-column field="vin" header="Vin (startsWith)" [filter]="true"></p-column>
<p-column field="year" header="Year (contains)" [filter]="true" filterMatchMode="contains"></p-column>
<p-column field="brand" header="Brand (startsWith)" [filter]="true"></p-column>
<p-column field="color" header="Color (endsWith)" [filter]="true" filterMatchMode="endsWith"></p-column>
-
- Posts: 14
- Joined: 18 Jul 2016, 21:26
Indeed, this feature would improve datatable ...
Currently it resolves all the column fields(irrespective of filter feature). You can create a github feature request to control this behavior.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests