This is a migrated thread and some comments may be shown as answers.

getXML not saving expand state correctly

1 Answer 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Growls
Top achievements
Rank 1
Growls asked on 08 Jul 2009, 11:53 PM
hi I have a tree view that is generated at runtime. I can populate it, and save the state using the GetXML() method fine (to session). after reloading the page I use the loadxmlstring() method to re-assign the state. My issue is that after assigning the state, the parent nodes should have a negitive sign "-", instead they have a positive sign "+" so I have to click it three times to collpse the parent node.
I have tried using an arraylist and saving all the IDs of all the expanded nodes, then looping through the nodes after they are bound and using the node.expanded = true property to expand them. Doing it this way produces the same result, having to click the parent node three times to collapse it.
Also after re-assigning the state, the absolute child node isnt expanded. even though the parent is expanded.

1 Answer, 1 is accepted

Sort by
0
Growls
Top achievements
Rank 1
answered on 09 Jul 2009, 12:49 AM
nevermind, found a solution here:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/ajax-treeview-expand-node-issue.aspx


Tags
TreeView
Asked by
Growls
Top achievements
Rank 1
Answers by
Growls
Top achievements
Rank 1
Share this question
or