PDA

View Full Version : Find Component from Element



AndreKR
10 May 2010, 5:15 PM
Hi,

after spending endless hours on trying to find the tree node that another element is dropped on (http://www.extjs.com/forum/showthread.php?98777-Find-TreeNode-that-is-dropped-on) I am quite confused about DOM nodes and tree nodes and other components...

Is there really no arrow pointing from Element upwards?
20422

André

cnelissen
10 May 2010, 6:41 PM
Yes, you can get the component from the element by doing Ext.getCmp('element-id')....

evant
10 May 2010, 6:44 PM
That won't always work. Why do you need to do that in the first place?

AndreKR
11 May 2010, 3:30 PM
Drawing that chart cleared up things, so I found a solution. See http://www.extjs.com/forum/showthread.php?98777-Find-TreeNode-that-is-dropped-on