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

Hide Arrow

3 Answers 110 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 07 Sep 2010, 02:14 PM
Hi,

I want to hide arrow from panel bar.
Panel Bar item only have header property binded. [does not have expand/collapse structure]

Is it possible to hide/remove arrow from panel bar.

Thanks & Regards,
Saurabh

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 10 Sep 2010, 01:56 PM
Hi saurabh,

In order to remove the "arrow" you need to edit the ControlTemplate of the RadPanelBarItem. More information on how to edit ControlTemplates you can find here.

Then you can set the Visisbility of the "arrow" element to Collapsed like in the attached example.

i hope this info helps. Let me know if you need more.

Regards,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Travis
Top achievements
Rank 1
answered on 12 Oct 2010, 06:48 PM

I tried using the example you posted and it works, but it doesn't work when I specify the panel bar items in my xaml file instead of loading them from code behind.  Why is this?

<telerik:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" Width="250"
                ItemContainerStyle="{StaticResource RadPanelBarItemStyle}"
                ItemTemplate="{StaticResource PanelBarItemTemplate}" />
            <telerik:RadPanelBarItem  Header="Admin"></telerik:RadPanelBarItem>
0
Travis
Top achievements
Rank 1
answered on 12 Oct 2010, 07:38 PM
Ah, I think I figured it out.  I set the template of the RadPanelBarItem like so:

<telerik:RadPanelBarItem  Header="Admin" Template="{StaticResource PanelBarItemTopLevelTemplate}"></telerik:RadPanelBarItem>
Tags
PanelBar
Asked by
saurabh
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Travis
Top achievements
Rank 1
Share this question
or