Using WebAii framework and C#, I am trying to iterate through all of the menu items to validate access for our application WITHOUT knowing what's there. I can get the root and children but am having a hard time getting ChildNodes of a Child or going 3 levels deep. Here's the code I am having an issue with... I can't seem to figure out how to get the 3rd level and I'm sure it's something simple I am overlooking. Thanks in advance!
foreach (RadMenuItem rootitem in menu.RootItems) { string menuHeader = rootitem.Text; Log.WriteLine("The menu header is - " + menuHeader); RadMenuItem menuList = menu.FindItemByText(menuHeader); foreach (RadMenuItem childitem in menuList.Items) { string chldItem = childitem.Text; Log.WriteLine(menuHeader + " - " + chldItem); if (childitem.HasChildren) { int c = childitem.ChildNodes.Count; for (int i = 1; i <= c; i++) { string childChild = ****CAN'T FIGURE THIS CODE OUT**** Log.WriteLine(menuHeader + " - " + chldItem + " - " + childChild); } } } }