Cannot get Item Expand to work in RadPanel Templates Demo

2 posts, 1 answers
  1. Robert
    Robert avatar
    1 posts
    Member since:
    Mar 2011

    Posted 24 Mar 2011 Link to this post

    I am using a combination of 2 demos under your RadPanel demos.  I am using the Templates and then I am using the Accessing Nested Controls demo within it.

    I cannot set the RadPanel.Items[].Expanded property in code behind or inline for the Template demo.  I am trying to set the inital panel to be expanded.  I realize that the Panel that I am trying to wowk with has a HeaderTemplate and a ContentTemplate, and using a radMenu within the HeaderTemplate, and that this may be part of the problem, according to this issue on the forum.

    I have tried what this article suggests but this breaks everything.

    I appreciate your help.
  2. Answer
    Helen avatar
    1052 posts

    Posted 29 Mar 2011 Link to this post

    Hi Robert,

    Thank you for the report. Actually the problem appears when RadPanelBar has both HeaderTemplate and ItemTemplate, and the expanded item has no text.
    You may workaround it if you set text for this item:

    <telerik:RadPanelItem Expanded="true" Text="testing">
        <div style="float: left; padding-top: 1px; z-index: 2800;">
        <telerik:RadMenu ID="RadMenu1" runat="server" OnClientItemClicked="onItemClicked"
            Skin="Forest" Style="z-index: 2900">
            <telerik:RadMenuItem Text="Books" Selected="true">
            <telerik:RadMenuItem Text="Cameras">
            <telerik:RadMenuItem Text="Apparel">

    Hope it helps.

    the Telerik team
Back to Top