Well, it seems that there still are some issues with this one. I have some kind of problem with EO TreeView and I guess it could be ViewState related...or something....
I know that you want test pages to verify the things, but it will quite some job to extract a functional test page so I'd appreciate if we could have a discussion first...
The setup:
*One page with a panel control into which a dynamic UserControl is loaded. (...no CallbackPanel, only standard panels with full page refresh...)
*The dynamic UserControl include some dynamically populated controls, let's restrict the configuration to a EO Treeview and a standard TreeView.
* The UserControl is loaded into the panel when a button is clicked, and then reloaded in the Page_Load method on postbacks (retaining the same ID).
* The TreeView objects in the ascx file are empty, i.e. without child nodes.
* The node objects of the TreeViews are created in the Page_Init() method of the UserControl.
* The node configuration (expanded nodes, checkbox states) is set in the Page_Load() method of the UserControl.
Now, let's assume that I click the button to get the UserControl loaded. It loads and present the two TreeViews. Let's assume that the Page_Load() has expanded the first top node and selected the checkbox on the first child node (on both TreeViews).
I now make some change to the TreeViews (expand/compress nodes or change checkbox states) and initiates a postback (...let's assume I have another button for this...).
When the page is refreshed, the standard TreeView has the changed state while the EO TreeView has reverted to the initial state of expanded nodes and checkbox states. I make new changes to both TreeViews and initiates a new postback. When the page is refreshed, both TreeViews has the changed state.
So, that wrap things up - With a dynamically populated EO TreeView on a dynamically loaded UserControl, the EO TreeView reverts to the initial state on the first postback,
and only on the first postback. On subsequent postbacks, it retains the configuration as set by the user.
Standard dynamically created controls (TreeView and RadioButtoList tested) work on the first postback as well as on subsequent postbacks.
Help