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

Disable expanding on RadPanelBarItem?

5 Answers 200 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 05 Feb 2012, 06:45 PM
Is it possible to force a RadPanelBarItem to be always open? (hide the expander button, disable double click on header)

5 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 08 Feb 2012, 01:42 PM
Hello Erik,

 Please check out the attached project where a possible approach is demonstrated. The Style of the PanelBarItems is edited in order to hide the "Arrow" ( its Opacity is set to 0). On the other hand, we have set only one RadPanelBarItem to be Expanded initially and we have globally set:

IsExpandOnSingleClickEnabled="False"
IsExpandOnDblClickEnabled="False"
  All the best,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Erik
Top achievements
Rank 1
answered on 08 Feb 2012, 08:03 PM
Thanks Petar your solution works.

RadPanelBar and RadPanelBarItem each expose a property named 'ExpanderStyle', can this property be used to modify the visualisation of the expander? (so that I don't have to template the entire RadPanelBar)
0
Petar Mladenov
Telerik team
answered on 09 Feb 2012, 07:24 AM
Hi Erik ,

 This property is inherited from RadTreeView but cannot be used in RadPanelBar. Please excuse us for the inconvenience caused.

Kind regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Cameron
Top achievements
Rank 1
answered on 03 Jan 2013, 04:55 PM
With the example you've attached, is there anyway to reduce what is being overwritten with the style for the RadPanelBarItem and only override the image. The reason I ask is because I would like to use one of the predefined themes offered and simply remove the image. It sure would be nice to have a property that can be set on the control to do this in a future release. Because if you look at the example given here...The use case suggested is if the properties: IsExcpandOnSingleClickEnabled and IsExpandOnDbleClickEnabled are both set to false, then having the expand image visible is meaningless, yes?

Thanks
Cameron
0
Tina Stancheva
Telerik team
answered on 04 Jan 2013, 09:41 AM
Hi Cameron,

I can definitely see your point and this is why I've logged a feature request to expose a property to allow an easier customization of the expander indicator of each RadPanelBarItem. I also updated your Telerik account as a small sign of appreciation for sharing your feedback on the control.

If, you'd like to track and/or vote for this task, you can do it in our PITS.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PanelBar
Asked by
Erik
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Erik
Top achievements
Rank 1
Cameron
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or