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)
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?