Child form menu bar is merged with the parent menu bar

3 posts, 0 answers
  1. Krish
    Krish avatar
    16 posts
    Member since:
    Oct 2018

    Posted 30 Dec 2018 Link to this post

    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. n/a
    n/a avatar
    30 posts
    Member since:
    Jan 2018

    Posted 10 Jan in reply to Krish Link to this post

    I'm also facing the same issue, Is there a way to get it solved.
  3. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 11 Jan Link to this post

    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.
Back to Top