Wondering how I can generate multi layerd sub menu items from data. I have managed to get the first level sub menu to generate from the initial parent, but how can I generate children of the sub menu items? I am using vb and this is the current code I have:
'Where To Stay
parentItem = radMenu.Items(1)
For Each row As DataRow In dt.Rows
childItem =
New RadMenuItem
childItem.Text = row(
"Name").ToString
childItem.NavigateUrl =
"~/AtlanticPortal/en/WhereToStay.aspx?Region=" & row("ID").ToString & "&Community=0&Category=0&ProvID=" & Session("ProvID").ToString & "&RegionName=" & row("Name").ToString
parentItem.Items.Add(childItem)
Next
I can get the sum benus to generate in relation to any of the 9 main menu items (parentItem = radMenu.Items(1)), but the sub menu items do not follow the same numbering... I need the menu items to be generated from a data source as children of a child of menu item1 if that makes any sense.