Get full path of selected TreeNode?

  1. #1

    Get full path of selected TreeNode?

    Is this possible in a single call somehow? For example:

    Root
    Node1
    ChildNode1


    If I click on ChildNode1, I would like to somehow get the value of: "Root\Node1\ChildNode1" returned.
  2. #2

    RE: Get full path of selected TreeNode?

    An instance of 'node' is passed to the <Click> Listener.*

    You can then get any property of that selected node, such as .text.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Get full path of selected TreeNode?

    Correct. But, will it give you the full path of that node? I need not just the text of the clicked on node, but the full path of that node. It is quite possible that the parent nodes are not actually clicked on, just expanded. So building a full path as the click along wont work. I'm assuming there is not currently a single property that returns the full path, but it would be nice in the future release to have something like node.Fullpath

    Until then, can you help me with creating a JavaScript function to recurse up the chain to get the full path of the selected node? I have little experience with JavaScript. Thanks.

Similar Threads

  1. Replies: 5
    Last Post: Jul 15, 2019, 9:12 AM
  2. Debug console, selected control and traverse path to body
    By TheAlchemistBR in forum 1.x Help
    Replies: 3
    Last Post: Jan 24, 2012, 1:39 PM
  3. Replies: 6
    Last Post: Jan 11, 2012, 9:52 AM
  4. How can I get MenuItems selected as path?
    By Pablo in forum 1.x Help
    Replies: 0
    Last Post: Jul 14, 2009, 6:52 PM
  5. How to get selected TreeNode in JavaScript?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: May 26, 2009, 1:34 PM

Posting Permissions