Jul 11, 2012, 5:35 PM
[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:
taylorjp2000
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
Thankstaylorjp2000
Last edited by Daniil; Jul 12, 2012 at 8:13 AM.
Reason: Please use [CODE] tags, [CLOSED]