Problem with closing RadMenu

2 posts, 0 answers
  1. Wolfgang
    Wolfgang avatar
    2 posts
    Member since:
    Aug 2011

    Posted 27 May 2013 Link to this post


    I'm using Telerik WinForms Q1 2013 SP1.

    I've inserted a RadMenu with a RadMenueButtonItem in my Main WindowsForm.
    When the RadMenueButtonItem is clicked a Form is shown with newForm.ShowDialog();
    The problem i have: the radMenue is still open until i click on the Form.
    How can i close the RadMenue when a RadMenueButtonItem is clicked?
    I've tried to set the Focus on the new Form, but didn't help.
    Only a click event on the new shown Form closes the RadMenu.

    Thanks a lot for any help...
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 30 May 2013 Link to this post

    Hello Wolfgang,

    Thank you for writing.

    If I understand correctly, you have a RadMenuButtonItem in a RadMenuItem and when you click the former, you open a dialog and the popup remains opened. If so, you can just access the popup of the menu item (the parent of the RadMenuButtonItem) and close its popup. Here is a sample:
    void btn_Click(object sender, EventArgs e)
        RadMenuButtonItem item = (RadMenuButtonItem)sender;
        RadMenuItem parent = item.ParentItem as RadMenuItem;
        Form1 fz = new Form1();

    Let me know how this works for you.

    RadChart for WinForms is obsolete. Now what?
  3. DevCraft R3 2016 release webinar banner
Back to Top