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

Messagebox or Popup on mouseover for a menu item - URGENT

3 Answers 85 Views
Menu
This is a migrated thread and some comments may be shown as answers.
maha
Top achievements
Rank 1
maha asked on 15 Aug 2008, 03:00 PM
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.

3 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 15 Aug 2008, 04:11 PM
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.
0
maha
Top achievements
Rank 1
answered on 18 Aug 2008, 03:48 PM
How can i show pop up , is there any builtin control that i can use to show the pop up?
0
Helen
Telerik team
answered on 19 Aug 2008, 09:01 AM
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.
Tags
Menu
Asked by
maha
Top achievements
Rank 1
Answers by
Helen
Telerik team
maha
Top achievements
Rank 1
Share this question
or