This is a migrated thread and some comments may be shown as answers.

Items inside ItemTemplate are not displayed

2 Answers 49 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 24 Apr 2012, 12:20 PM
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 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 26 Apr 2012, 08:24 AM
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.
0
Covertix
Top achievements
Rank 1
answered on 29 Apr 2012, 08:29 AM
Hello Dimitar,

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

Thanks!
Tags
PanelBar
Asked by
Covertix
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Covertix
Top achievements
Rank 1
Share this question
or