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

RedMenu Goes away

1 Answer 30 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Aarsh
Top achievements
Rank 1
Aarsh asked on 17 Jul 2012, 08:43 PM
I've been using radMenu and radWindow on the same screen.
inspired form :http://www.telerik.com/support/kb/aspnet-ajax/window/show-radwindow-above-radmenu.aspx

actually I'm using an event mouse-out to hide the menu when I do not want:

    </script>
    <script type="text/javascript" id="telerikClientEvents2">
//<![CDATA[
 
        function RadMenu1_MouseOut(sender, args) {
            document.getElementById(sender.get_id()).style.zIndex = -1;
        }
//]]>
    </script>


but I observed that it works even when I leave the tool-bar and go to the drop down menu, so there any way out where I can actually distinguish if the mouse is on the menu or anywhere else ?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jul 2012, 06:14 AM
Hi Aarsh,

Try the following Jquery along with your script to set the zIndex again if you move to the dropdown.

Javascript:
<script type="text/javascript">
 $(".rmSlide").mouseover(function ()
 {
  var menu = $find("<%=appMenu.ClientID %>");
  menu._element.style.zIndex = 7001;
 });
 $(".rmSlide").mouseout(function ()
 {
  var menu = $find("<%=appMenu.ClientID %>");
  menu._element.style.zIndex = -1;
 });
</script>

Hope this helps.

Thanks,
Princy.
Tags
Menu
Asked by
Aarsh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or