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

Mouse Over Content Menu

2 Answers 57 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 26 Feb 2010, 08:49 PM
Hi Guys and Girls

I have a RadMenu made up of images and i want to use a simlar style to your site menu , but want to make the content menu show on the mouseover event not the onclick event .

Can this be done and if so is there a help or guidelines out there

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Mar 2010, 01:02 PM
Hello Lee,

Please, use the demo from this kb article and replace 'onclick' with 'onmouseover' in the TopNavigation.ascx user control:

var menu = $find('<%= menuTopNavigation.ClientID %>');
       var productsItem = menu.get_items().getItem(0);
       dropDownArrow =
               productsItem.get_element().getElementsByTagName('span')[0].appendChild(                    
                   document.createElement("a")
               );
       var contextMenu = $find('<%= MyLovelyContextMenu.ClientID %>');
       dropDownArrow.id = 'rmExpandMenuArrow';
       dropDownArrow.href = "#";
       dropDownArrow.onmouseover =
               function(e) {
                   if (!e) e = window.event;
                   if (!e.target) e.target = e.srcElement;
                   // open context menu


Kind regards,
Peter
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
Lee
Top achievements
Rank 1
answered on 07 Mar 2010, 11:42 PM
Thank you for your help , but is there a way that you can remove the drop down arrow ?
Tags
Menu
Asked by
Lee
Top achievements
Rank 1
Answers by
Peter
Telerik team
Lee
Top achievements
Rank 1
Share this question
or