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
595
Why does data disappear from the WebDataTree on postback?
posted

I am population a WebDataTree using WebDataTree.Nodes.AddRange(). I build up my own List<DataTreeNode> dynamically.

This works correctly and I see all my nodes and child nodes however, on postback, all of the child nodes disappear, leaving me only with the top level nodes. There is no code running on PostBack. The population only happens when not a postback.

Am I doing something incorrectly here?