Link to home
Start Free TrialLog in
Avatar of haas090897
haas090897

asked on

Treeview

I would like to build a asp page to display some data in a treeview which can expand on demand without posting everytime. Thats the easy part! The problem is when I need to refresh the page to get more data or view changes in the "titles". If i expand some nodes and then refresh the page then i need to expand them once again to view the changes. Does anyone have a clever script to accomplish this?
Avatar of xabi
xabi

Ok, I have my own, and I use this technique. I have two frames, The left one with the tree view, and the right one with the contens of the selectd tree item. When I expand anything in the left window i pass the value to a right page variable, so I always have a track of the expanded left window nodes. When I reload the left page i ask the right page for the expanded nodes and expand them.
I hope it helps you.
My script is made ussing ASP to retrieve database values, Javascript for the logic and DHTML for hidind showing nodes.
Xabi
Avatar of haas090897

ASKER

I guess thats the way to do it. It feels like I have tried everything else. I think i need to keep track of the nodes they close to, but i have an idea to accomplish this to.
ASKER CERTIFIED SOLUTION
Avatar of xabi
xabi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to xabi

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
Comment from expert accepted as asnwer.

Computer101
E-E Moderator