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

Child form menu bar is merged with the parent menu bar

2 Answers 887 Views
Form
This is a migrated thread and some comments may be shown as answers.
Krish
Top achievements
Rank 1
Krish asked on 31 Dec 2018, 05:29 AM
In MDI parent form, if the MDI child form is maximized, the child form is getting merged with the parent menu bar. Can you please help to get a separate menu bar for the MDI child form too. Please check and do the needful.

2 Answers, 1 is accepted

Sort by
0
Dev
Top achievements
Rank 1
Veteran
answered on 10 Jan 2019, 11:23 AM
I'm also facing the same issue, Is there a way to get it solved.
0
Hristo
Telerik team
answered on 11 Jan 2019, 09:36 AM
Hello,

The observed behavior is desired and when the MDI child gets maximized its menu will be merged to the menu of the parent. You can also refer to the documentation article about menu merge for more details: https://docs.telerik.com/devtools/winforms/controls/menus/menu/menu-merge/menu-merge.

The same behavior can be also observed with the standard forms and the System.Windows.Forms.MenuStrip control. The menu merge functionality in our RadMenu control can be disabled by setting the AllowMerge property to false. Please note, however, that if you set the property in this kind of scenario, you will lose the menu items of the MDI child form once you maximize it: 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();
 
        this.IsMdiContainer = true;
 
        this.radMenu1.AllowMerge = false;
    }
 
    private void radButton1_Click(object sender, EventArgs e)
    {
        RadForm2 f = new RadForm2();
        f.MdiParent = this;
        f.Show();
    }
}

I hope this will help. Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Form
Asked by
Krish
Top achievements
Rank 1
Answers by
Dev
Top achievements
Rank 1
Veteran
Hristo
Telerik team
Share this question
or