<telerik:RadPanelBar |
ID="rpbCSRLists" |
runat="server" |
ExpandMode="SingleExpandedItem" |
AllowCollapseAllItems="true" |
Width="100%" |
PersistStateInCookie="true" |
OnClientItemExpand="OnClientItemExpand"> |
<Items> |
<telerik:RadPanelItem Text="Alternative Words to Search In Plan Documents" Selected="true"> |
<Items> |
<telerik:RadPanelItem> |
<ItemTemplate> |
<CSR:AlternativeWords ID="uctAlternativeWords" runat="server" /> |
</ItemTemplate> |
</telerik:RadPanelItem> |
</Items> |
</telerik:RadPanelItem> |
</Items> |
</telerik:RadPanelBar> |
Instead of adding my User Control declaratively, how would I go about adding this user control programmatically when the panel bar is clicked? I know I can use the ItemClicked event but actually adding the control is giving me problems ("cannot add control to literal control etc). I just can't seem to get the heirarcy right to find where I should be adding the control.
Thanks!