DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

Having trouble with TreeView menu

This thread is closed to new posts. You must sign in to post in the forums.
4/29/2011 2:43:37 PM
Gravatar
Total Posts 42

Having trouble with TreeView menu

I'm using the following for my sub-navigation:

<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="false" TreeViewExpandDepth=1 />

It initially it shows the 1st and 2nd levels. If you click on a 2nd level it shows the 3rd level for that item. (All of this is good). But, when you click on the 3rd level item the menu goes back to showing just the initial view, 1st and 2nd levels. I would like for the view to remain the same so you can continue to see the 3rd level of nav when at a 3rd level.

 

Thanks for any help.

Tim

5/1/2011 12:43:43 PM
Gravatar
Total Posts 16574

Re: Having trouble with TreeView menu

You might try setting the expand depth a little higher and then hiding any extra levels from CSS like this:

div.AspNet-TreeView ul li ul li ul li ul { display:none; }

Hope that helps,

Joe

5/2/2011 11:43:09 AM
Gravatar
Total Posts 42

Re: Having trouble with TreeView menu

Hmm, that doesn't really solve my issue. Yes, that will keep the 3rd level visible, but it's also visible when you're at the first level.

 

I just don't understand why the menu would essentially revert when getting to the third level.

5/2/2011 1:10:55 PM
Gravatar
Total Posts 16574

Re: Having trouble with TreeView menu

try setting TreeViewPopulateOnDemand="false" and see if that helps.

Best,

Joe

5/2/2011 1:34:12 PM
Gravatar
Total Posts 42

Re: Having trouble with TreeView menu

That did the trick! I was able to keep TreeViewExpandDepth=1, all works perfectly.

Thanks, Joe!

Tim

PS - We have 3 sites in development using Mojo, and this is our first use of Mojo (hence I keep asking questions). I'll be sure to send them to you when they have launched. We've also decided to buy you a beer everytime one of our Mojo sites goes live. ;P

 

You must sign in to post in the forums. This thread is closed to new posts.

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!