0
votes

I want to expand primeng treetoggler dynamically. When I manually click on treetoggler icon it is expanding and collapsing but when I try to expand it from typescript code, it didn't worked. Node is not expanding.

In typescript I called click even of treetoggler.Actually click event is passing through the entire code nodeExpand but in UI, particular row is not expanded.

Even all rows have expanded property set to true.

How to resolve this issue.

1
I couldn't find anything documented in primeng public api. But there are toggle expand collapse methods in UITreeNode component which i suppose might be used to achive what you want. Here: github.com/primefaces/primeng/blob/master/src/app/components/…ysf

1 Answers

0
votes

I think you need to study the official documentation. Part: Change Detection.

Another answer from developer PrimeNg.