Items inside ItemTemplate are not displayed

3 posts, 0 answers
  1. Tzach Kaufmann
    Tzach Kaufmann avatar
    95 posts
    Member since:
    Aug 2008

    Posted 24 Apr 2012 Link to this post

    Hi,

    I am trying to create RadPanelBar with RadPanelItem that contains 3 anchors inside.
    This is my Code:

                    <telerik:RadPanelBar ID="RadPanelBar" runat="server" Skin="Gray" style="float:left; margin-left:3px; width:1200px;">
                        <Items >
                            <telerik:RadPanelItem Text="RadPanelItem" runat="server">
                               
                                <Items>
                                    <telerik:RadPanelItem Value="test" runat="server">
                               
                                        <ItemTemplate>
                                        
                                            <div>
                                                    <a id="btnDelete" disabled="disabled">
                                                       Delete
                                                    </a>
                                                   
                                                    <a id="btnUpdate" disabled="disabled">
                                                        Update                                                
                                                    </a>
                                                   
                                                    <a id="btnAdd">
                                                        Add                                                           
                                                     </a>
                                           </div>
                                       </ItemTemplate>
                               
                                    </telerik:RadPanelItem>
                                </Items>
                               
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelBar>


    The problem is, that the anchor are not displayed inside the RadPanelItem.
    The same happenes for me if I use the <br> tag. It seems like it doesn't work inside the RadPanelItem (although it works in your demos).
    Can you please help me and tell me what am I doing wrong?

    I used the demo: http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

    Thanks a lot!
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 26 Apr 2012 Link to this post

    Hello,

    I've inspected and tested the sample mark up provided and everything is working properly on my side. Could you clarify which is the version of the controls which you are using?

    Regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tzach Kaufmann
    Tzach Kaufmann avatar
    95 posts
    Member since:
    Aug 2008

    Posted 29 Apr 2012 Link to this post

    Hello Dimitar,

    Thanks for your reply.
    I solved the problem by adding a RadCodeBlock inside the ItemTemplate.

    Thanks!
Back to Top