PrimeNG is a user interface tool set for Angular. The treetable is one of the components in PrimeNG and is used to display hierarchical data in tabular format..
Questions tagged [primeng-treetable]
49 questions
10
votes
4 answers
How to expand PrimeNg TreeTable by code
Assuming I have a TreeTable provided by PrimeNg for Angular2. How can I expand a particular node in code (for example in onNodeSelect callback)?

user4401
- 394
- 1
- 4
- 15
5
votes
1 answer
PrimeNG TreeTable Empty
In an attempt to use PrimeNG in an Angular 4.1 project I am having some issues.
Here is the documentation I was following: https://www.primefaces.org/primeng/#/treetable
I'm testing the TreeTable feature but the output that is in the UI is empty. It…

nbrink
- 436
- 5
- 14
3
votes
0 answers
Display Node Index on PrimeNG Tree Nodes
Since p-tree from PrimeNG does not have way of using rowIndex.
How do I display/get the Index of nodes each node using ng-template.
Is there any workaroud?

Kishor Prakash
- 8,011
- 12
- 61
- 92
3
votes
1 answer
Changing the expand and collaps icons in the PrimeNG tree
I'm using the tree component from PrimeNG. Does anyone knows how I can change the expand and collapse icons ? My target is to get a plus and minus instead of the fa-caret-down and fa-caret-right.
So from
to

michael
- 147
- 3
- 11
2
votes
1 answer
PrimeNG treeTable - change default expandedIcon/collapsedIcon
I am using treeTable from primeNG. I wanted to know how to change default expand and collapse icon.
I tried doing so... but I am not sure if I'm doing it the right way. I just want to replace those default expand/collapse icons to plus/minus. How do…

Goofy
- 210
- 1
- 3
- 17
2
votes
1 answer
Is there a way to auto-map json data to Tree Node instance in PrimeNG for Tree Table?
I have some JSON data coming from the server which I have to display in the Tree Table on the UI. I am using the PrimeNG Tree Table component for it. The problem I am facing is that the Tree table requires the data in a particular format.
For…

Mehul Solanki
- 21
- 3
2
votes
2 answers
Disable/Enable selection based on row content of PrimeNG TurboTable or TreeTable
With p-treeTable i can enable selection for all rows, based on selectionMode = "single". Now i'd like to disable selection for rows, which are not intended to be selected.
PrimeNG 7, Angular 7.
If I remove [ttRow]="rowNode"…

Carsten Luxig
- 129
- 8
2
votes
1 answer
PrimeNG Treetable - Get childrens and parents of a node
I'm using PrimeNG treetable component and I want to get all the children of a node when I click on getChildrens button near that node.
Also, I want to get all the parents of that node when I click the getParents button near the same node.
The goal…

Kivo
- 385
- 8
- 24
2
votes
1 answer
PrimeNG TreeTable Level Styling
I have implemented TreeTable from PrimeNG.
Requirement is to add doted lines between levels for usability perspective.
I have tried multiple approaches but since it is generating HTML structure
I…