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: Scrolling the tree to selected item?

Posts: 1
Registered: 10/7/2007
Location: Hungary
Member Is Offline
posted on 10/7/2007 at 06:13 PM Reply With Quote
Scrolling the tree to selected item?

I'm displaying the Tree Menu in a fix sized box, because the site's design not allowing to display the full tree.

Is solvable, that the tree's selected item (folder or leaf) scrolling automatic to the displaying box's top?

In other words, when some item is selected, let it be always visible in the box automatic?

Is this solvable with some javascript?

My displaying box's HTML:

<div id="treebox" style="width:560; height:140;background-color:#f5f5f5;border :1px solid Silver; overflow:auto;"/><script type="text/javascript">new tree (TREE_ITEMS, TREE_TPL);</script></div>

thank you!
View User's Profile View All Posts By User U2U Member

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/14/2008 at 03:49 PM Reply With Quote

this function is not supported, but it's possible to implement.
for that we need to:

1. get the id of the HTML element containing the selected item
2. calculate the vertical offset of that element in the document
3. scroll the page to that vertical position

Please submit a support ticket if you need help with #1 or if you need a quote for implementing whole thing.
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