I have a RadPanelBar, and I can't find controls inside the ItemTemplate.
I read:Help documentation for accessing item: Accessing Items
Help documentation for accessing control inside: Accessing Controls Inside Templates
But it doesn't work for me.
here is my code:
<telerik:RadPanelBar ID="rpbAddFilters" runat="server">
<Items>
<telerik:RadPanelItem Text="RadPanelItem" runat="server">
<Items>
<telerik:RadPanelItem Value="test" runat="server">
<ItemTemplate>
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
<asp:Panel ID="pnlValues" runat="server">
` </asp:Panel>
</telerik:RadCodeBlock>
</ItemTemplate>
</telerik:RadPanelItem >
</Items>
</telerik:RadPanelItem >
</Items>
</RadPanelBar>
function find()
{
var panelbar = $find("<%= rpbAddFilters.ClientID %>");
var item = panelbar.findItemByValue("test");
var pnlValues = item.findControl("pnlValues");
}I get null value for pnlValues.
Thanks.