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

rpSelected class not getting set on active page

3 Answers 54 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Matt Melick
Top achievements
Rank 1
Matt Melick asked on 31 Mar 2010, 02:40 PM
I am trying to use the skin objects for DNN. Specifically RadPanelBar, I want to display root level pages using a horizontal menu at the top of the page (currently using DNNMenu), and a vertical list on the side of the page to display child pages using RadPanelBar. Everything seems to work ok except when a page in the panel bar is clicked, it does not receive the .rpSelected class. I want to apply a style to the item that the user clicked to indicate the page in the panelbar the user is currently viewing.

 I have added the panelbar to my skin using the following statement:
<dnn:RadPanelbar runat="server" id"dnnPanelbar_sli" ShowOnlyCurrent="RootItem" Skin="sli" EnableEmbeddedSkins="false"  EnableEmbeddedBaseStylesheet="false" /> 

Any feedback would be appreciated.

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 06 Apr 2010, 08:32 AM
Hi Matt,

You should set the SelectedPathItemCss and SelectedPathHeaderItemCss properties to the Css classes you want applied in this case.

Regards,
Dimitar Milushev
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
Digital Man
Top achievements
Rank 2
answered on 14 Nov 2011, 10:10 PM
Have the properties changed in recent versions? The page/DNN skin blows up if I try and use the properties "SelectedPathItemCss" or "SelectedPathHeaderItemCssas if they're not supported property names. Also, in the skinning whitepaper at

http://www.telerik.com/help/aspnet/panelbar/menu_skinningwhitepaper.html

doesn't include the properties "EnableEmbeddedSkins" or "EnableEmbeddedBaseStylesheet".  But we are using those with no problem.
 
0
Genady Sergeev
Telerik team
answered on 16 Nov 2011, 01:14 PM
Hi Digital Man,

These are properties of the RadMenu, not the RadPanelBar. The original case was RadPanelBar inside RadMenu, hence the menu properties.

Kind regards,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
PanelBar
Asked by
Matt Melick
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Digital Man
Top achievements
Rank 2
Genady Sergeev
Telerik team
Share this question
or