RadPanelItem are expended when set to false

2 posts, 0 answers
  1. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 19 Nov 2010 Link to this post

    Hello I have a RadPanelBar with 3 RadPanelItem 's
    I set the first one as Expanded = true and others as false.
    However they still all load as expanded.
    Did I forget a setting?

    Preview:
    http://beta.simpletick.com/marketplace/add/default.aspx

    code:

    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%" ExpandMode="FullExpandedItem">
            <Items>
                <telerik:RadPanelItem runat="server" Expanded="True" Text="How to setup a SimpleTick theme for the marketplace"
                    Width="100%" CssClass="PanelTitle">
                    <ItemTemplate>
                                <div style="width: 425px" id="__ss_5659144">
                                    <strong style="display: block; margin: 12px 0 4px"><a href="http://www.slideshare.net/simpletick/simpletick-theme-marketplace"
                                        title="SimpleTick Theme Marketplace ">SimpleTick Theme Marketplace </a></strong>
                                    <object id="__sse5659144" width="425" height="355">
                                        <param name="allowFullScreen" value="true" />
                                        <param name="allowScriptAccess" value="always" />
                                        <embed name="__sse5659144" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=marketplace-101103151706-phpapp01&rel=0&stripped_title=simpletick-theme-marketplace&userName=simpletick"
                                            type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
                                            width="425" height="355"></embed></object>
                                </div>
                            </ItemTemplate>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Expanded="False" Text="Submit your theme now"
                    Width="100%" CssClass="PanelTitle">
                     
                   <ItemTemplate>
                             
                                <br />
                                    <asp:Button ID="SubmitThemeButton"  runat="server"
            Text="Submit Theme"
            ToolTip="This will save your theme to the SimpleTick marketplace"
            onclick="SubmitThemeButton_Click" />
                                 
                            </ItemTemplate>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Expanded="False" Enabled="False" Text="Status" Width="100%" CssClass="PanelTitle">
                     
                   <ItemTemplate>
                                <p>
    Your theme has been successfully submitted to the SimpleTick Marketplace. <br />
                                Team SimpleTick will inspect your template for compatibility and originality before approving and releasing your theme to the marketplace.<br />
                                We'll send you an email when it's live. Thanks!
     
                                </p>
                            </ItemTemplate>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
  2. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 19 Nov 2010 Link to this post

    ok, found the answer here:
    http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

    It seems I needed an extra wrapper:

    <Items>
                                <telerik:RadPanelItem Value="AccountInformation" runat="server">
                                    <ItemTemplate>

    content here
     </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>


    for each item, now it works
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top