[CLOSED] How to get Leaf ID from TreePanel Node.

  1. #1

    [CLOSED] How to get Leaf ID from TreePanel Node.

    The title pretty much says it all.

    I have a TreePanel with only one ( root ) node.

    In that node I add several several leaves dynamically during runtime.
    Is there a way to get the NodeID of the last clicked leaf?

    PS - I only have one root node with no other nodes. all the child nodes I add to the root node are added as leaves.
    Last edited by Daniil; Apr 25, 2013 at 5:19 PM. Reason: [CLOSED]
  2. #2
    Hi @extnetuser,

    Quote Originally Posted by extnetuser View Post
    Is there a way to get the NodeID of the last clicked leaf?
    You should, probably, listen a TreePanel's ItemClick event.
    http://docs.sencha.com/extjs/4.2.0/#...vent-itemclick

    This should return a node's id.
    record.getId()
  3. #3
    Thank you,

    please mark this as closed.

Similar Threads

  1. [CLOSED] Not able to drag drop leaf to leaf in TreeGrid
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 15, 2011, 1:47 PM
  2. [CLOSED] [1.0] How to make only leaf nodes clickable in TreePanel
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 20, 2010, 3:26 PM
  3. Tree Node leaf
    By Richardt in forum 1.x Help
    Replies: 3
    Last Post: Sep 24, 2009, 11:06 AM
  4. Default TreePanel Leaf Icon
    By t0ny in forum 1.x Help
    Replies: 1
    Last Post: Jan 06, 2009, 10:57 AM

Tags for this Thread

Posting Permissions