Is there an option that can be set to persist the expanded nodes during postback? My tree is set to load-on-demand with only the 1st level nodes being initially loaded. If the user expands several nodes and a postback occurs I want to be able to keep the grid in the same state after postback.
Hello Bob,
I haven't heard from you in a few days and just wanted to check to see if there was anything else I can do for you. If I don't hear from you in 3 days I will go ahead and close this case as inactive. Once a case is closed you will still be able to open it again within 30 days.
Please let me know if I may be of further assistance with this matter.
I am following up to see if I may be of further assistance with this matter.
If using the DataBound event is current working I do not see and issue with using that event. I did the persisting of the state of the WebDataTree in the the Page_Load because it allowed me to temporarily save out the information I needed and set it back after the DataBind happened which is where the tree expanded state would reset.
I have not tested the exact code you sent, but that is essentially what I ended up doing although I used the webDataTree.DataBound event to re-select and re-expand the necessary nodes. Is there any drawback to using that event or would page load complete be more appropriate?
I am following up to see if the sample I provided in my last update resolved your issue.