Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
WebDataTree expanding problem
posted

I'm using the WebDataTree with several nodes created from a sitemap source.  When one of the nodes is clicked it refreshes the page and the datatree collapses back to  the original state.  is there anyway to return or expand back to the node that was clicked once the page is refreshed.  Can't seem to find any code to expand the data tree in my code??

Parents
  • 33839
    Suggested Answer
    posted

    Hi,

    You can easily expand out to a node on the server.  You will need to figure out which node was clicked, but then you can call node.ExpandAnscestors();  You can also set node.Expanded = true; for a node to be expanded.  So, I would try to put this code somewhere in the page load.  Let us know if this works or you need more help.

     

    regards,
    David Young

Reply Children