EXTJS Find the Parent Node

I need to find a parent to select the node in the tree, however whenever I use ParentNode it always appears as "undefined" (and I do not select the root). Does anyone know a good way to find the parent node?

thank

+3
source share
2 answers

Maybe you should try parentNode, not ParentNode. JS is case sensitive.

+11
source

You can use the code below:

let parentNode = Ext.getCmp('YourGridId').getRootNode();
0
source

Source: https://habr.com/ru/post/1764929/


All Articles