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

I have a RadPanelBar with Several GroupElements. I like the look and feel of the OutlookNavPane GroupStyle.

3 Answers 49 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Khizar Khan
Top achievements
Rank 1
Khizar Khan asked on 10 Feb 2010, 10:37 AM

I have a RadPanelBar with Several GroupElements. I like the look and feel of the OutlookNavPane GroupStyle.

 

There are an indeterminate number of GroupElements. In the picture below(attached image1), 4 groups.

I would like to the RadPanelBar to look like this:(attached image2)

With just two groups showing, the rest minimized on the bar at the bottom. The User can achieve this y either dragging the dotted line down, or by using the Down Arrow at the bottom right, and choosing “Show Less Buttons”.

How can I do this programmatically, at Initialization time?

 

Also (onus Question), how do I style the top Caption bar?  Is it Themable?

I am using 2009 Q3, SP1

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 15 Feb 2010, 11:18 AM
Hi Khizar Khan,

1. If you want to minimize some of the groups, you can do the following:

OutlookStyle outlookStyle = (this.radPanelBarDemo.PanelBarElement.CurrentStyle as OutlookStyle);
         outlookStyle.ShowFewerButtons();

2. The code snippet below will show you how to access and modify some of the visual properties of Outlook style caption:

RadPanelBarVisualElement caption = this.radPanelBarDemo.PanelBarElement.Children[0].Children[0] as RadPanelBarVisualElement;
 
            caption.Padding = new Padding(15);
            caption.BackColor = Color.Blue;
            caption.BackColor2 = Color.Blue;
            caption.BackColor3 = Color.Blue;
            caption.BackColor4 = Color.Blue;

I hope this helps.

Sincerely yours,
Boyko Markov
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
Khizar Khan
Top achievements
Rank 1
answered on 15 Feb 2010, 04:41 PM
Thanks this was of help..

a question about theme,

I have a user control where I have panelbar control. and my user control is included in another control which has a theme "Breeze", all the other control look good in breeze theme, but I didn't like Panel Bar in Breeze theme
I want to apply aqua theme to panel bar, I tried within the control

ThemeResolutionService.ApplyThemeToControlTree(radPanelBar1, "Aqua");

it is not apply rather, it is takine the parent control theme. any help or suggestions..

Regards,
khizar



0
Boyko Markov
Telerik team
answered on 18 Feb 2010, 08:53 AM
Hello Khizar Khan,

Thank you for contacting us. In order to apply the Aqua theme to RadPanelBar, you can do the following:

this.radPanelBarDemo.ThemeName = "Aqua";
    
Please contact us again, in case you need more information.

Sincerely yours,
Boyko Markov
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 (obsolete as of Q2 2010)
Asked by
Khizar Khan
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Khizar Khan
Top achievements
Rank 1
Share this question
or