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

Relationship between RadMenu and RadMenuItem

1 Answer 51 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Cheng Lim Sek
Top achievements
Rank 1
Cheng Lim Sek asked on 10 Nov 2009, 07:35 AM
Hi,

May I know how can I get is the radmenu's item is popup?

A0 B0
A1
A2
A3    A3.1
        A3.2

When I mouseover to the A0, A1, A2 and A3 is popup. How can I get that the A1,A2, A3 which is the A0 radMenuItem is popup?
I want to have an event if the RadMenuItem is popup, and if the radMenu do not have any submenuitem, i will do nothing.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 13 Nov 2009, 10:47 AM
Hello Cheng Lim Sek,

You can achieve this by adding a MouseEnter event hanlder to the RadMenuItem and check if the menu has elements:
    public RadMenu()
        {
            InitializeComponent();
 
            SaveFile_MenuItem.MouseEnter += new MouseEventHandler(SaveFile_MenuItem_MouseEnter);
        }
 
void SaveFile_MenuItem_MouseEnter(object sender, MouseEventArgs e)
        {
            if (SaveFile_MenuItem.HasItems)
            {
                //// perform some action
            }
        }


Best wishes,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Cheng Lim Sek
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or