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

Hiding expand/collapse arrow on specific panel item

2 Answers 193 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 13 Apr 2011, 04:11 PM
Hi,

I'm trying a PanelBar with four panel items, two static (always expanded) and two expandable/collapsable.
Is it possible to hide the expand/collapse arrow on a specific panel item? (I would hide the arrow on the two panel items that are always expanded).

Regards,
John.

2 Answers, 1 is accepted

Sort by
0
Accepted
Helen
Telerik team
answered on 13 Apr 2011, 06:20 PM
Hello john,

You may try the following:
<head runat="server">
    <title></title>
    <style type="text/css">
       .Test .rpOut .rpExpandHandle
        {
          visibility: hidden;
        }
     
    </style>
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
         
            <telerik:RadPanelBar ID="RadPanelBar1" runat="server" ExpandMode="MultipleExpandedItems"
                >
                <CollapseAnimation Duration="100" Type="None" />
                <Items>
                    <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1" CssClass="Test">
                        <Items>
                            <telerik:RadPanelItem runat="server">
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2">
                        <Items>
                            <telerik:RadPanelItem runat="server">
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                </Items>
                <ExpandAnimation Duration="100" Type="None" />
            </telerik:RadPanelBar>
       </div>
    </form>
</body>



Greetings,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
john
Top achievements
Rank 1
answered on 14 Apr 2011, 07:46 AM
Thanks for your help, it works fine.

Regards,
John.
Tags
PanelBar
Asked by
john
Top achievements
Rank 1
Answers by
Helen
Telerik team
john
Top achievements
Rank 1
Share this question
or