I have a app on my site that uses a treeview to display the sitemap. This is populated from a database. I want to be able to store the view state (expanded/collapsed nodes) in session. I have a functional save and restore method, the problem is tying the save feature to an appropriate event. For testing, I tied the save method to a button click, however, this isn't very practical. The user should not have to click a button to save the tree's view state.
My original inspiration came from this article:
http://blog.binaryocean.com/CommentView,guid,23808645-43b5-4e2a-afb1-53dc8da35636.aspx#commentstart
but I had to heavily modify it for my architecture to the point where it is quite different. My implementation can remain irrelevant for this discussion because it all works if I save using a butto ...
Go to the complete details ...