Results 1 to 7 of 7

Thread: Get TreeNode of TreePanel by mouse coordinates or HTML element

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default 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?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Vote Rating
    499
      0  

    Default

    You want the id on hover only and not selection?

    Scott.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Corrent. I want the ID on hover but without registering for an event at the tree node. The coordinates come from somewhere else.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Vote Rating
    499
      0  

    Default

    I do not believe this is possible.

    Scott.

  5. #5
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,016
    Vote Rating
    182
      0  

    Default

    Not sure I follow the use case, how about just using:

    Code:
    Ext.getCmp('treepanel-1001').view.on('itemmouseenter', function(){console.log(arguments);})

  6. #6
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
      0  

  7. #7
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Vote Rating
    499
      0  

    Default

    Good to know .. learn something every day

    Scott.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •