Messagebox or Popup on mouseover for a menu item - URGENT

4 posts, 0 answers
  1. maha
    maha avatar
    31 posts
    Member since:
    May 2008

    Posted 15 Aug 2008 Link to this post

    I want to show a popup or a message box on client mouseover on one particular menu item.
    How can i establish this.

    Can someone help.
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 15 Aug 2008 Link to this post

    Hi,

    You may use the OnClientMouseOver client-side event of RadMenu to show the popup.

    Refer to the code below:

    <telerik:RadMenu id="RadMenu1" runat="server" OnClientMouseOver="OnMouseOver" Height="26px" Width="1066px">  
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                <Items> 
                    <telerik:RadMenuItem runat="server" Text="Item1">  
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Item2">  
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Item3">  
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Item4">  
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Item5">  
                    </telerik:RadMenuItem> 
                </Items> 
              
            </telerik:RadMenu> 
            <script type="text/javascript">  
                function OnMouseOver(sender, eventArgs)  
                {  
                    if(eventArgs.get_item().get_text() == "Item2")  
                    {  
                        alert(eventArgs.get_item().get_text());  
                          
                    }  
                }  
            </script> 


    Regards,
    Helen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. maha
    maha avatar
    31 posts
    Member since:
    May 2008

    Posted 18 Aug 2008 Link to this post

    How can i show pop up , is there any builtin control that i can use to show the pop up?
  4. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 19 Aug 2008 Link to this post

    Hello,

    You may use the RadToolTip. Please review the following example for details:
    http://www.telerik.com/demos/aspnet/prometheus/ToolTip/Examples/ShowEvent/DefaultCS.aspx


    Sincerely yours,
    Helen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top