Hello, I have an application with a MasterPage. On this MasterPage, I have an UltraWebTree used for navigation. The navigation part works fine, but the tree goes back to its original state upon each post. i.e. I have node 1 with sub nodes A, B, C, and node 2 with sub nodes X, Y, Z. If I collapse node 2 (X, Y, and Z collapse and are not visible), and then click A, when the A page comes up, node 2 is expanded. How do I make the tree maintain state between posts?
I'm having a a simular issue. I have a main menu that is loaded directly. If one of the links in this meny is used a postback is made an by identifying the id from the postback i'll make a database call to populate my ultrawebtree. My main issue isn't the functionality if the tree it works just fine. But if the tree have sub levels and one of these is expanded and that item/child is pressed the site is reloaded, that to is fine it should be reloaded to show information about the pressed item. But i would like the structure to maintain stretched. Now it colapses to it's original state with the + signs to navigate futher down. I've enabled the sessionstate on the ultrawebtree. I have also tried to do a ultrawebtree.nodes.count right after the postback is made and it's always empty. I'm using a Session variable to maintain the tree, but this only seem to work when the main menu is pressed. Do you understand my issue?
Regards
Rickard
Yes, you can.
Post hear your code to be possible to give you some help.
Bye,
Carlos Marcão
OK, I checked whether I am repopulating the tree. I'm not. When I'm on a page and "use" the menu it is in this state when I click one of the links in the tree.
MenuX SubMenu1 SubMenu2MenuY SubMenu1 SubMenu2
After clicking link on the tree, it looks thusly
MenuXMenuY
Can I not have this behavior without going to Frames?
Hello!
Check if you aren't repopulating your webtree on each postback.
Carlos Marcão (Altitude Software, Portugal)