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

RadPanelBarItem - How to remove Header?

3 Answers 82 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Rogério Ferreira
Top achievements
Rank 1
Rogério Ferreira asked on 23 Feb 2010, 11:25 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Tihomir Petkov
Telerik team
answered on 23 Feb 2010, 01:38 PM
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.
0
Rogério Ferreira
Top achievements
Rank 1
answered on 23 Feb 2010, 04:38 PM
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
0
Tihomir Petkov
Telerik team
answered on 24 Feb 2010, 01:11 PM
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.
Tags
PanelBar
Asked by
Rogério Ferreira
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Rogério Ferreira
Top achievements
Rank 1
Share this question
or