I have the following telerik:RadPanelBar Declared in a default.aspx page
<telerik:RadPanelBar runat="server" ID="radIdentifyPanel" Skin="WebBlue" Width="100%" Height="100%" ExpandMode="FullExpandedItem"> |
<Items> |
<telerik:RadPanelItem Text="Details" Expanded="true" runat="server"> |
<Items> |
<telerik:RadPanelItem runat="server"> |
<ItemTemplate> |
<telerik:RadColorPicker ID="RadColorPicker1" runat="server" AutoPostBack="True" Preset="Standard"> |
</telerik:RadColorPicker> |
<asp:Label ID="lblTest" runat="server" Text="Change me"></asp:Label> |
<asp:Panel ID="IdentifyFSDetails" runat="server"> |
Dynmanic Details here! |
</asp:Panel> |
</ItemTemplate> |
</telerik:RadPanelItem> |
</Items> |
</telerik:RadPanelItem> |
.... |
</Items> |
<ExpandAnimation Type="None" /> |
</telerik:RadPanelBar> |
I am trying to dynamically insert some html into the asp:Panel IdentifyFSDetails but can not seem to get access to it using the following javascript clientside.
var panelbar = $find("radIdentifyPanel"); |
var item = panelbar.findItemByText('Details'); |
var test1 = item.findControl("IdentifyFSDetails"); |
var test2 = item.findControl("lblTest"); |
both test1 and test2 return null while if I try getting the reference to the color picker like the example it does get a reference to it.
All I am trying to do is insert the dynamic html into the panel.
What am I doing wrong?