Open rai-prashanna opened 5 months ago
Hi,
Could you please share a stackblitz example so we can identify the issue clearly?
I just ran into this same problem, you need to modify the
<ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns">
<tr [ttRow]="rowNode" [ttSelectableRow]="rowNode">
After that, selectionChange, onNodeSelect and onNodeUnselect will work
Describe the bug
If i provide [(selectionKeys)]="mySelectionKeys", treetable doesn't invoke callback method (onNodeSelect) when a node is selected and callback method (onNodeUnselect) when a node is unSelected .
example of my code snippet.
Environment
It can be reproduce any environment.
Reproducer
No response
Angular version
17.3.4
PrimeNG version
17.17.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.19.0
Browser(s)
edge, chrome
Steps to reproduce the behavior
treetable doesn't invoke callback method (onNodeSelect) when a node is selected and callback method (onNodeUnselect) when a node is unSelected when i provide [(selectionKeys)]="mySelectionKeys".
example of my code snippet.
Expected behavior
callback method (onNodeSelect) should be invoked