Relationship between RadMenu and RadMenuItem

2 posts, 0 answers
  1. Cheng Lim Sek
    Cheng Lim Sek avatar
    33 posts
    Member since:
    Oct 2009

    Posted 10 Nov 2009 Link to this post


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

    A0 B0
    A3    A3.1

    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.
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 13 Nov 2009 Link to this post

    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()
                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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top