This is a migrated thread and some comments may be shown as answers.

related menus bound to a ASPNETSqlSiteMapProvider

1 Answer 74 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Magnus
Top achievements
Rank 2
Magnus asked on 26 Apr 2011, 11:05 AM
I have two related menu's a horizontal top menu and a vertical childmenu

In the top menu I only want to show one level of items ie. those that are child of root! (level1)
and in the vertical menu I want to show child items of current selected item (level2,3 and 4 in a treeview)

when I select an item level1 in the radmenu it gets highlighted and when I select an item level 2,3 or 4 in the treeview I want the level 1 parent item in the radmenu to be highlighted as this does work when I dont have MaxDataBindDepth="1" in the Radmenu but then I get the dropdown menu showing all child items which I dont want. Is there a way of solving this with another function than MaxDataBindDepth="1" I saw MaxLevel in the documentation but it didnt work. (My client has RadControls ASP.NET-AJAX 2011Q1)

(MasterPage)
<
tr:RadMenu ID="mnuNavRoot" runat="server" MaxDataBindDepth="1" Flow="Horizontal" DataSourceID="smdsNav" /> 
<asp:SiteMapDataSource ID="smdsNav" runat="server" ShowStartingNode="false" SiteMapProvider="AspNetSqlSiteMapProvider" /> 
  
(ASPX Page)
 <tr:RadTreeView ID="tvNaviMain" runat="server" ShowLineImages="false" DataSourceID ="smds1">
</tr:RadTreeView
<asp:SiteMapDataSource ID="smds1" runat="server" ShowStartingNode="false" SiteMapProvider="AspNetSqlSiteMapProvider" /> 

If root = true Then 
     tvNaviMain.MaxDataBindDepth = 1
Else 
     smds1.StartingNodeOffset = 1 
End If

 

 

Any suggestions?

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Magnus
Top achievements
Rank 2
answered on 29 Apr 2011, 11:11 AM
so does anyone know if this is possible....my am rounding of my project and this is the only thing that is not solved...would appreciate som kind of feedback.

/Thanks
Tags
Menu
Asked by
Magnus
Top achievements
Rank 2
Answers by
Magnus
Top achievements
Rank 2
Share this question
or