[CLOSED] Expanding Tree Nodes in Behind Code

  1. #1

    [CLOSED] Expanding Tree Nodes in Behind Code

    I have a tab panel with treepanels on each tab. The treepanels are populated from a database in behind code. The user can add/modify/deactivate nodes on the treepanel using the application. After updating the treepanel, I used the code below to clear the original tree from the treepanel and add back the updated tree to the treepanel. This is working correctly. However, I would like to have the treepanel expanded on the node that was being worked on. This is not working. Whenever the tree is displayed, root is always expanded.

    Code:

    tree.ClearContent()
    CreateTree(5173, tree, "Title")
    tree.Render()
    tree.Show()                     NOTE:  This works fine to this line
    tree.ExpandNode("7717")  7717 is the nodeid to be expanded
    The message seen in debug is
    "Uncaught TypeError:  Cannot call method 'expand' of undefined
    Thanks

    taylorjp2000
    Last edited by Daniil; Jul 12, 2012 at 8:13 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Figured it out. Please close thread. Developer error.

Similar Threads

  1. [CLOSED] Remote-Load of a Subtree without expanding nodes
    By macap in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 31, 2011, 11:59 AM
  2. Loading Tree panel nodes from code behind
    By sumesh in forum 1.x Help
    Replies: 2
    Last Post: May 20, 2011, 12:00 PM
  3. Replies: 1
    Last Post: May 04, 2010, 9:54 AM
  4. [CLOSED] Search/Highlight Tree Nodes
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 04, 2009, 3:24 PM
  5. [CLOSED] Tree Nodes Alignment
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 25, 2009, 2:03 PM

Posting Permissions