Primeng: Filtering for TreeTable

Created on 12 Feb 2019  路  8Comments  路  Source: primefaces/primeng

Added the following attributes to treetable;

Name | Type | Default | Description
-- | -- | -- | --
filters | array| null | An array of FilterMetadata objects to provide external filters.
filterDelay | number | 300 | An array of FilterMetadata objects to provide external filters.
filterMode | string | lenient | Mode for filtering valid values are lenient and strict. Default is lenient.
globalFilterFields | array | null | An array of fields as string to use in global filtering.

filterMode has two values; lenient and strict
When using filtering on a treetable,

  • lenient->If the filtered value matches a node's text, this mode receives the node with the node's children and displays them in the treetable. In short, this mode doesn't control node's children. The node is sufficient to match.
  • strict-> this mode controls all nodes. It only shows all matches in the treetable. If a node matches, but its children do not match, children are not displayed in the treetable.

Exp;
Filtered Value; b

  • lenient->
    Movies / Robert De Niro/ Goodfellas - Untouchables
  • strict->
    Movies / Robert De Niro/ Untouchables
new feature

Most helpful comment

when is new release avaiable with this great change?

All 8 comments

Thnx a lot!! Great work!

wow thanks

Hello,
is there an example of use for the filter in the TreeTable please ? Thanks a lot in advance, Bego帽a

I added sample pages for the TreeTable-Filter and Tree-Filter demos. We'll update live primeng page asap. Also, please see; https://github.com/primefaces/primeng/commit/3e9ed4e51cd3832c60593bc6a319e053e607849f
It is similar to p-table filter; https://www.primefaces.org/primeng/#/table/filter

when is new release avaiable with this great change?

This is a GREAT feature. Great work. Thanks! Any idea on when it will be released?

Please add new feature that can be selected item on filter. Thanks

if i select parent then i should able to see only parent that's correct ,
we tried few approches as strict and lenient but we need viceversa.

if we select child node then we should not able to see parent node after filtering ,
can we have some solution for this.

Thanks in advance

Was this page helpful?
0 / 5 - 0 ratings

Related issues

watalberto picture watalberto  路  3Comments

SchneMa picture SchneMa  路  3Comments

papiroca-tm picture papiroca-tm  路  3Comments

markgoho picture markgoho  路  3Comments

mitosandov picture mitosandov  路  3Comments