getXML not saving expand state correctly

2 posts, 0 answers
  1. Growls
    Growls avatar
    20 posts
    Member since:
    Apr 2009

    Posted 08 Jul 2009 Link to this post

    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.
  2. Growls
    Growls avatar
    20 posts
    Member since:
    Apr 2009

    Posted 08 Jul 2009 Link to this post

    nevermind, found a solution here:
    http://www.telerik.com/community/forums/aspnet-ajax/treeview/ajax-treeview-expand-node-issue.aspx


Back to Top