When trying to expand row in tree grid programmatically with expandRow it throws error "Cannot read property 'expansionStates' of undefined".
this.treeGrid.expandRow(rowPkId);Tree grid is shown, but row is not expanded and error is thrown: "Cannot read property 'expansionStates' of undefined".
Expected row to be expanded.

@SteffNite, I was able to reproduce this issue only if I call the expandRow method in the ngOnInit. This is expected since the grid is still not initialized in ngOnInit of its parent.
If this is your case I would suggest you to call expandRow in the ngAfterViewInit instead.
@DiyanDimitrov, Yes you are right. It was my mistake. Thank you very much for your time!