Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Help with Displaying Top Level Nodes using SpTreeView

  Asked By: Courtney    Date: Feb 28    Category: Sharepoint    Views: 2527

I am looking for a no-code, SharePoint Designer method to accomplish
the following:

Using the SPTreeView ASP.NET control, I notice that whenever I
navigate to a sub-site in my site collection, the Tree View loses the
parent node, rather making my present page the root node of the tree.

So my questions are:

1. Is there a way through SharePoint Designer to bind the Tree View to
my overall site collection's site map, instead of refocusing the root
node to my present sub-site level?

2. Assuming I can do the above, I would then like to maintain my
expansion state to be open to the page I am currently viewing, similar
to the method described by
Right now, the default behavior is to collapse or expand the tree to
the pre-determined number of levels set by the ExpandDepth attribute,
but I really need to force open the branch of the tree to represent my
current location (and not force open the rest of the branches). Is
there any non-code way to accomplish this through SharePoint Designer?

(For those who are curious, my current temporary workaround is to
hand-build an ASP.NET TreeView control, node by node, into a Frameset,
and point to a custom masterpage in my main frame. Since I never
navigate away from the TreeView, it remains open to the correct level
after clicking to a page. However, for aesthetics and bookmarking
reasons, this is obviously not ideal, and moreover, this is causing a
bizarre memory leak error in IE7 when the viewer closes the browser!
I'd love to hear if anyone else has encountered memory exceptions when
using Frames in conjunction with SharePoint content.)



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Help with Displaying Top Level Nodes using SpTreeView Or get search suggestion and latest updates.