Hi,
I'm trying to create a panelbar with a single (root) item which I can expand and collapse.
I've found the solution in this help section
Now I'm tryning to add a button in the header of this root item, but without succes (setting the headertemplate for the root item works, but the expand/collapse button disappears)
This is the complete code of my page :
How can i achieve this? Thx
I'm trying to create a panelbar with a single (root) item which I can expand and collapse.
I've found the solution in this help section
Now I'm tryning to add a button in the header of this root item, but without succes (setting the headertemplate for the root item works, but the expand/collapse button disappears)
This is the complete code of my page :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Detail.aspx.cs" Inherits="Mobile_Detail" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="ScriptManager" runat="server" /> <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="742px" Height="330px" Skin="MetroTouch" ExpandMode="FullExpandedItem" AllowCollapseAllItems="true"> <CollapseAnimation Type="None"></CollapseAnimation> <Items> <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1"> <HeaderTemplate><asp:Button runat="server" Text = "TEST" /></HeaderTemplate> <Items> <telerik:RadPanelItem Expanded="false"> <ItemTemplate> TEST</ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem> </Items> </telerik:RadPanelBar> </form></body></html>How can i achieve this? Thx