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

RadPanelBarItem styling

1 Answer 113 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 09 Jul 2010, 10:49 AM
Hi

I am currently trialling the Q2 controls and have a couple of questions regarding the RadPanelBar.

Firstly - I have used the ControlTemplates provided in the documentation to re-style the panel bar and the panel items. However the content headers and the items are now styled the same, what I want is for the header to stand out from the items. Could you please advise how I style these two items differently?

Secondly - is there a way to set the panels so that when expaned they only take up the space required for their items? At the moment the panels are expanding to fill all available space - for example I have three sections, when I expand the first section the other two sections are pushed to the bottom of the container, I would like the sections to expand only enough to show their items.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 13 Jul 2010, 03:22 PM
Hello Sean,

1) When you edit the style of RadPanelBarItem, you will see 2 ControlTemplates - PanelBarItemTopLevelTemplate and PanelBarItemSecondLevelTemplate.


If you edit them you might end up with the result above.

2) Have your tried setting VerticalAlignment="Top" to the PanelBar. This will make the PanelBar give its items only the space they require.

I'm attaching my test project for further reference. If I haven't understood you correctly, could you please elaborate a little bit more on what you are trying to achieve. I'd be glad to further assist you.

Greetings,
Kiril Stanoev
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
Sean
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or