RadPanelBarItem - How to remove Header?

4 posts, 1 answers
  1. Rogério Ferreira
    Rogério Ferreira avatar
    9 posts
    Member since:
    Jun 2009

    Posted 23 Feb 2010 Link to this post

    Hi,

     I'm using a RadPanelBarItem that, depending on a user input, will show a different header.

     Our main user is now requesting that the header is not visible in some occasions, I already set the header to Collapse, Opacity to 0, Height = 0, everything I could remember.

     Is there any proper way to do this?

    Thanks,

    Rogério Ferreira
  2. Answer
    Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 23 Feb 2010 Link to this post

    Hello Rogério,

    To completely hide a PanelBarItem's header you will need to edit the default ControlTemplate and remove the corresponding elements. However, if you do so you will not be able to collapse or expand that item since these actions are triggered by user interaction with the header. Can you please elaborate a bit on your scenario and why "header-less" items will be useful?

    Greetings,
    Tihomir Petkov
    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. Rogério Ferreira
    Rogério Ferreira avatar
    9 posts
    Member since:
    Jun 2009

    Posted 23 Feb 2010 Link to this post

    Hi,

     I already changed the template, that was also the only way I could find.

     Our use case is a bit off scope, the PanelTabItem constains several constrols inside it, RadGridView with the results, and a few other controls...
     
     This PanelTabItem is inside another control that controls the events of showing/hiding the PanelTab that contains that PanelTabItem.

     In the PanelTabItem header I  set the refresh button the close button, etc...

     In some occasions, the user wants for this particular PanelTabItem to appear without anything around it, just the controls that are inside it.

     Sounds crazy??? Yes, a bit, but that's what he wants :)

     I might move everything that's inside the PanelTabItem and create a new separate control and show that inside a popup or something. But for now, I will use the style and set it accordingly to the user requests.

    Thanks,

    Rogério Ferreira
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 24 Feb 2010 Link to this post

    Hello Rogério,

    I see you are working on quite a specific scenario. My advice will be similar to what you said - if your case requires heavy modifications to the PanelBar control it is probably a better idea to use another control or create your own custom-tailored one. From what you described, I believe there will be no benefits from using the PanelBar, other than the styling of the control.

    All the best,
    Tihomir Petkov
    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.
Back to Top