Welcome Guest Search | Active Topics | Sign In | Register

One item coming through on Slide Menu bound to a Sitemap Options
Shannon
Posted: Friday, June 1, 2007 3:59:19 PM
Rank: Newbie
Groups: Member

Joined: 6/1/2007
Posts: 3
When I attempt to add a DataSourceID to the Slide Menu it only seems to allow for the top level to pull through. WHat am I doing wrong?

Thanks
eo_support
Posted: Friday, June 1, 2007 4:15:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Shannon,

Check the url attribute of your top level item in your sitemap file. It is very common for every item in the sitemap to have a url attribute, but this does not work well with SlideMenu because the SlideMenu will not expand a sliding pane if NavigateUrl is set --- and by default url is mapped to NavigateUrl.

In order to avoid this situation, you may want to handle ItemDataBound event and explicitly clear NavigateUrl for top level items:

Code: C#
protected void SlideMenu1_ItemDataBound(
    object sender, EO.Web.NavigationItemEventArgs e)
{
    if (e.NavigationItem.Level == 0)
        e.NavigationItem.NavigateUrl = string.Empty;
}


Please let us know if this resolves the issue.

Thanks
Shannon
Posted: Friday, June 1, 2007 4:54:45 PM
Rank: Newbie
Groups: Member

Joined: 6/1/2007
Posts: 3
I added the ItemDatabound handler and it is still not working.
eo_support
Posted: Friday, June 1, 2007 5:01:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Can you attach your sitemap file and your page files (.cs/.vb and .aspx) so that we can take a look?
Shannon
Posted: Friday, June 1, 2007 5:03:38 PM
Rank: Newbie
Groups: Member

Joined: 6/1/2007
Posts: 3
If it is a master page, would that matter?
eo_support
Posted: Friday, June 1, 2007 5:49:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Master page should not matter. You may want to check the SiteMapDataSource's ShowStartingNode property. If you have one root node and that property is true, you will only see one top level item.

If the problem persists, we would need to see your code to determine what's wrong. You can either attach it in the forum (using the attach button) on top of your post, or email the code to us privately. Please see your private message for instructions.
Ben Switzer
Posted: Monday, June 4, 2007 6:49:28 AM
Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 30
Shannon,

I always like to troubleshoot issues like these with microsoft controls. Try binding a microsoft menu to the same sitemapdatasource. If you only get one level on microsoft's menu you know its a datasource problem. If you do get more than one level it is most likely a setting on essential object's slidemenu control.

HTH


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.