Hide Arrow

4 posts, 0 answers
  1. saurabh
    saurabh avatar
    32 posts
    Member since:
    Jul 2010

    Posted 07 Sep 2010 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Travis
    Travis avatar
    223 posts
    Member since:
    Jan 2003

    Posted 12 Oct 2010 Link to this post

    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>
  5. Travis
    Travis avatar
    223 posts
    Member since:
    Jan 2003

    Posted 12 Oct 2010 Link to this post

    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>
Back to Top