This is a migrated thread and some comments may be shown as answers.
Selected menu bold when on child page
2 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 17 Nov 2010, 10:43 PM
When selecting a menu child I will like the parent menu to be bold.  (see screenshot - Calendars should be bold). After selecting one of the calendars  I would like the user to be able to tell what menu item they are on.

Menu Def (front end)

<Telerik:RadMenuItem Text="Home" AccessKey="H">
                        <Items>
                            <Telerik:RadMenuItem  Text="User Dashboard" ImageUrl="https://wac.edgecastcdn.net/0017BD/User_16.gif" NavigateUrl="MyProfileView.aspx?cmd=resetall" />
<Telerik:RadMenuItem  Text="My User Dashboard" ImageUrl="https://wac.edgecastcdn.net/0017BD/User_16.gif" NavigateUrl="MyProfileView.aspx?cmd=resetall" />
                            <telerik:RadMenuItem IsSeparator="True" />
                        </Items>
                    </Telerik:RadMenuItem>

On the vacation calendar page

        'Set Selected Tab
        If Not Page.IsPostBack Then
            Dim rMnu As Telerik.Web.UI.RadMenu
            rMnu = CType(Page.Master.FindControl("FLSRadMenu"), Telerik.Web.UI.RadMenu)
            If Not rMnu Is Nothing Then
                rMnu.Items(5).Selected = True
            End If
        End If 

CSS

.RadMenu_FLSMenu a.rmFocused,
.RadMenu_FLSMenu a.rmSelected
{
    background-color: #fff;
        font-weight: bold;
}

The backgound color is getting picked up.  But not he font weight.

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 22 Nov 2010, 02:46 PM
Hello Marc,

Try setting, font-weight: bold !important, so that it overwrites the base styles.

I hope that helps.
0
Marc
Top achievements
Rank 1
answered on 30 Nov 2010, 12:57 AM
That worked.  Thanks!!
Tags
Menu
Asked by
Marc
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Marc
Top achievements
Rank 1
Share this question
or