I have a RadPanelBar with about 6 RadPanelItems -- each of these items are separate .ASCX user controls. Within these user controls depending on the options selected by the user I want to have other RadPanelItems created dynamically (at run-time).
The problem I'm having is that when added the RadPanelItem is expanded, but when clicked it collapses. However, it then doesn't ever expand again (nor does it have the arrow pointing downward showing that there is something to expand).
Here is the code I use to add the items:
The items show up obviously but like I said they're not functional. It happens when the page is ajaxified and also when it's not ajaxified so I think it's definitely something I'm doing wrong.
Thanks for any help you can provide -- I've attached a screenshot.
The problem I'm having is that when added the RadPanelItem is expanded, but when clicked it collapses. However, it then doesn't ever expand again (nor does it have the arrow pointing downward showing that there is something to expand).
Here is the code I use to add the items:
RadPanelBar1 = Page.FindControl("RadPanelBar1") |
Dim radPanelBarItem1 As New RadPanelItem |
radPanelBarItem1.Text = " Basic Network Configuration" |
Dim template As ITemplate |
radPanelBarItem1.ImageUrl = "../Images/basic_network.png" |
template = Page.LoadTemplate("/controls/basicnet.ascx") |
radPanelBarItem1.ItemTemplate = template |
RadPanelBar1.Items.Add(radPanelBarItem1) |
Dim template2 As ITemplate |
Dim radPanelBarItem2 As New RadPanelItem |
radPanelBarItem2.Expanded = False |
radPanelBarItem2.Text = " Advanced Network Configuration" |
radPanelBarItem2.ImageUrl = "../Images/advanced_network.png" |
template2 = Page.LoadTemplate("/controls/advnet.ascx") |
radPanelBarItem2.ItemTemplate = template2 |
RadPanelBar1.Items.Add(radPanelBarItem2) |
The items show up obviously but like I said they're not functional. It happens when the page is ajaxified and also when it's not ajaxified so I think it's definitely something I'm doing wrong.
Thanks for any help you can provide -- I've attached a screenshot.