Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: persistant state of tree menu instance
PinkFloydEchoes
Junior Member

Posts: 5
Registered: 11/7/2003
Member Is Offline
posted on 12/12/2003 at 06:43 PM Reply With Quote
persistant state of tree menu instance


I have a tree menu that is 3 levels deep.
I click on a level 1 node and expand to see all level 2 nodes under that node. Then I click on a level 2 node to see the leaf nodes under that node.

Then I refresh the page and all the level 1 nodes are collapsed, but if I click on the same level 1 node, the level 2 node i chose previously is already expanded and the leaf nodes that belong to it are already displayed.

How can I set my tree menu up so that on a page refresh every node and sub node in the tree is collapsed?

do I have to write a beforeInit function?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 12/15/2003 at 09:25 AM Reply With Quote

If you are not using 'st' parameter in the item's scope settings than tree control by default uses its open/close state stored in the cookies. To disable state to be restored from cookies you could call o_mytree.reset_state() in the beforeInit function.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004