I have a tree which has this column defined:
<e-column field='functionalHierarchyId' textAlign='Left' [isPrimaryKey]='true' [visible]='false' [showInColumnChooser]='false'>
Thanks, but this solution does not work for nodes which are not displayed. In your example we see only 3 rows
What if I want to expand row with id 14 from this initial state?
In your sample, please change
1 to 14, like that:
treegrid.getRows()[treegrid.grid.getRowIndexByPrimaryKey(14)]
it throws errors.
expandAtLevel will expand all nodes on that level (regardless if they are in the branch with item with id 14, or not) , I do not want that.
So, in other words, there is no easy/simple way to expand a node which is not yet rendered (as the node 14 in the example).
Technically, I would need to find all parents of node with id 14, and then expand each of them?
Seems like an obvious missing feature here.