I am trying to hide/unhide an asp:Panel contained with a RadPanelBar. It works the initial page display (Page.Load) but when I try to change the visiblity of the asp:Panel once the screen is displayed nothing happens.
<telerik:RadPanelBar ID="pnlBar" EnableEmbeddedSkins="False" Skin="Panel_AssetDetails" runat="server" AllowCollapseAllItems="false" ExpandMode="MultipleExpandedItems" Width="516px"> <Items> <telerik:RadPanelItem runat="server" Text="Asset Details" Expanded="true"> <Items> <telerik:RadPanelItem Value="AssetDetails" runat="server"> <ItemTemplate> <table border="0"> <tr> <td> <b>File Size</b> </td> <td> <asp:Label ID="lblFileSize" runat="server" Text=""></asp:Label> </td> </tr> <asp:Panel ID="ImagePanel4" runat="server" Visible="true"> <tr> <td> <b>Resolution</b> </td> <td> <asp:Label ID="lblResolution" runat="server" Text=""></asp:Label> </td> </tr> </asp:Panel> <tr> <td> <b>Height</b> </td> <td> <asp:Label ID="lblHeight" runat="server" Text=""></asp:Label> </td> </tr> </table> </ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem> </Items></telerik:RadPanelBar>if (asset.assetType == (int)AssetTypes.Image){ ((Panel)(pnlBar.FindItemByValue ("AssetDetails").FindControl ("ImagePanel4"))).Visible = true;}else if (asset.assetType == (int)AssetTypes.Document){ ((Panel)(pnlBar.FindItemByValue ("AssetDetails").FindControl ("ImagePanel4"))).Visible = false;}