|
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
|
|
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
|
|
Rank: Newbie Groups: Member
Joined: 6/1/2007 Posts: 3
|
I added the ItemDatabound handler and it is still not working.
|
|
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?
|
|
Rank: Newbie Groups: Member
Joined: 6/1/2007 Posts: 3
|
If it is a master page, would that matter?
|
|
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.
|
|
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
|
|