Hi there,
Following your example on the TripXpert demo I wanted to style my menu exactly the same. Everything works fine, except that .rmfocused is not being applied. I have searched for hours, trying to add keyboard navigation to enable it, trying solutions from the forum like http://www.telerik.com/forums/how-to-get-rmfocused-on-menu-item or from stackoverflow but I was still not succesfull to enable this.
The thing i want to achieve is what I have attached as 1.png but the thing i get is what i attached as 2.png.
I use a masterpage with the following code:
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
>
<
div
id
=
"Header"
>
<
asp:ContentPlaceHolder
ID
=
"cphMenu"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
with the css applied to the header like this:
#Header {
position
:
fixed
;
z-index
:
10000
;
height
:
100px
;
background
:
#fff
;
width
:
100%
;
}
Then on the aspx page i have the following code:
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"cphMenu"
runat
=
"server"
>
<
telerik:RadMen
runat
=
"server
ID
=
"MainNav
EnableEmbeddedSkins
=
"false
CssClass
=
"tx_desctop_nav_menu"
nItemClick
=
"RadMenu1_ItemClick"
>
</
telerik:RadMenu
>
<
telerik:RadMen
runat
=
"server
ID
=
"MainNavMobile
RenderMode
=
"Mobile"
ssClass
=
"tx_mobile_nav_menu"
nItemClick
=
"RadMenu1_ItemClick"
>
</
telerik:RadMenu
>
</
asp:Content
>
My code on the server side is this:
protected
void
RadMenu1_ItemClick(
object
sender, RadMenuEventArgs e)
{
MpKlant.PageViews.Clear();
RadPageView pageView =
new
RadPageView();
pageView.ID = e.Item.Value;
MpKlant.PageViews.Add(pageView);
pageView.Selected =
true
;
}
RadMenuItem rmiNav2 =
new
RadMenuItem();
rmiNav2.Value =
"MijnBerekeningen"
;
rmiNav2.Text =
"Mijn berekeningen"
;
MainNav.Items.Add(rmiNav2);
I use the css classes from the example, but how can I get the .rmfocused being applied to the li.rmitem?
Kind Regards,
Corné