-
14 Jun 2012 4:09 AM #1
Get TreeNode of TreePanel by mouse coordinates or HTML element
Get TreeNode of TreePanel by mouse coordinates or HTML element
Hi,
is it possible to find the node of a TreePanel via mouse coordinates or via the ID of the nodes HTML element?
-
14 Jun 2012 5:50 AM #2
You want the id on hover only and not selection?
Scott.
-
14 Jun 2012 6:08 AM #3
Corrent. I want the ID on hover but without registering for an event at the tree node. The coordinates come from somewhere else.
-
20 Jun 2012 9:36 AM #4
I do not believe this is possible.
Scott.
-
20 Jun 2012 10:31 PM #5Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 52
Not sure I follow the use case, how about just using:
Code:Ext.getCmp('treepanel-1001').view.on('itemmouseenter', function(){console.log(arguments);})
-
20 Jun 2012 10:56 PM #6
Thanks for the answers!
I found a solution an StackOverflow:
http://stackoverflow.com/questions/11099578/extjs4-find-tree-node-by-screen-coordinate-or-html-element
-
21 Jun 2012 6:36 AM #7
Good to know .. learn something every day

Scott.


Reply With Quote