Hi Guys,
I'm experiencing a strange glitch in the process of creating a dynamic RadMenu. What I'm trying to accomplish is to create a menu using 2 sql statements. The first one will create the root layer, and the second one will create the children. Here is the code that I use for the root layer which is working correctly:
Here is the code for the children, which I'm looping through the second datareader:
For the most part, this is working correctly... Except one of the six menu items that I'm testing doesn't show its children. Now it has the arrow on the right hand side of the root level and while stepping through the code it should be adding several children and there are no errors. Its the same item each time.
What can I be doing so wrong that would cause this to happen?
Any help would be greatly appreciated.
William
I'm experiencing a strange glitch in the process of creating a dynamic RadMenu. What I'm trying to accomplish is to create a menu using 2 sql statements. The first one will create the root layer, and the second one will create the children. Here is the code that I use for the root layer which is working correctly:
Dim item1 As New RadMenuItem()
item1.Text = DataReader(
"menu_name").ToString.Trim()
item1.Font.Bold =
True
item1.Width = 185
Here is the code for the children, which I'm looping through the second datareader:
Dim item11 As New RadMenuItem()
item11.Text = DataReaderB(
"page_name").ToString.Trim()
item11.NavigateUrl =
"InteriorPages.aspx?ID=" & DataReaderB("id")
item1.Items.Add(item11)
RadMenu1.Items.Add(item1)
For the most part, this is working correctly... Except one of the six menu items that I'm testing doesn't show its children. Now it has the arrow on the right hand side of the root level and while stepping through the code it should be adding several children and there are no errors. Its the same item each time.
What can I be doing so wrong that would cause this to happen?
Any help would be greatly appreciated.
William