I have created a RadPanelBar that is databound to an object. I want to add a button in the header part of each RadPanelItem simliar to this http://www.telerik.com/community/forums/aspnet-ajax/panelbar/add-control-to-panelbar-header.aspx. I tried the suggested solution from that post, but the problem I am having is that the image/button is rendering behind the header instead of on top of it. All the examples that I have seen that work are using static RadPanelItems instead of dynamically created ones.
Here is some example code:
<telerik:RadPanelBar ID="rpb_Filters" |
ExpandMode="FullExpandedItem" |
Height="700px" |
runat="server" |
Skin="Vista" |
Width="490px"> |
<ItemTemplate> |
<asp:Image ID="img_URL" |
ImageUrl="add_16.png" |
runat="server" |
ToolTip="Add Child Category" /> |
</ItemTemplate> |
</telerik:RadPanelBar> |
and here is how I am setting the datasource
'Set the Datasource |
rpb_Filters.DataSource = Filters |
rpb_Filters.DataFieldID = "FilterID" |
rpb_Filters.DataFieldParentID = "ParentFilterID" |
rpb_Filters.DataTextField = "FilterName" |
rpb_Filters.DataBind() |
'Expand the first filter |
rpb_Filters.Items(0).Expanded = True |
Thanks!